mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avoid code duplication
Originally committed as revision 7573 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0726982cdb
commit
3da97cfdfc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user