From 562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 26 Jan 2017 00:06:50 +0100 Subject: [PATCH] fifo: Return the correct AVERROR value --- 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;