1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

simpler branch structure in init (16 bytes smaller object file)

Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-01-17 20:14:02 +00:00
parent be65b41f90
commit 4497712f09

View File

@ -26,9 +26,9 @@ int av_fifo_init(AVFifoBuffer *f, int size)
{ {
f->wptr = f->rptr = f->wptr = f->rptr =
f->buffer = av_malloc(size); f->buffer = av_malloc(size);
f->end = f->buffer + size;
if (!f->buffer) if (!f->buffer)
return -1; return -1;
f->end = f->buffer + size;
return 0; return 0;
} }