From 2e81bb5e92351cc88d88a1c55d21b13532131524 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 13 Aug 2011 19:11:05 +0200 Subject: [PATCH] fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2() --- libavutil/fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index f79131a9db..21687ff905 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;