Commit 3da97cfd authored by Michael Niedermayer's avatar Michael Niedermayer

avoid code duplication

Originally committed as revision 7573 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0726982c
......@@ -99,9 +99,7 @@ int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void
memcpy(dest, f->rptr, len);
dest = (uint8_t*)dest + len;
}
f->rptr += len;
if (f->rptr >= f->end)
f->rptr = f->buffer;
av_fifo_drain(f, len);
buf_size -= len;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment