[Ffmpeg-devel] Re: [Ffmpeg-cvslog] r7570 - trunk/libavutil/fifo.c
Roman Shaposhnik
rvs
Wed Jan 17 22:32:28 CET 2007
On Wed, 2007-01-17 at 20:46 +0100, michael wrote:
> /**
> @@ -111,7 +98,11 @@
> return -1;
> while (buf_size > 0) {
> int len = FFMIN(f->end - f->rptr, buf_size);
> - func(dest, f->rptr, len);
> + if(func) func(dest, f->rptr, len);
> + else{
> + memcpy(dest, f->rptr, len);
> + dest = (uint8_t*)dest + len;
> + }
> f->rptr += len;
> if (f->rptr >= f->end)
> f->rptr = f->buffer;
I'm just wondering whether this will make any noticeable
performance impact because of an extra call. Or am I splitting
hairs here ?
Thanks,
Roman.
More information about the ffmpeg-devel
mailing list