[FFmpeg-cvslog] fifo: Return the correct AVERROR value
Luca Barbato
git at videolan.org
Fri May 19 13:01:19 EEST 2017
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Jan 26 00:06:50 2017 +0100| [562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b] | committer: Luca Barbato
fifo: Return the correct AVERROR value
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b
---
libavutil/fifo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index a42899c2b3..2eb931e166 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -68,7 +68,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size)
AVFifoBuffer *f2 = av_fifo_alloc(new_size);
if (!f2)
- return -1;
+ return AVERROR(ENOMEM);
av_fifo_generic_read(f, f2->buffer, len, NULL);
f2->wptr += len;
f2->wndx += len;
More information about the ffmpeg-cvslog
mailing list