diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-13 19:11:05 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-14 01:56:28 +0200 |
commit | 2e81bb5e92351cc88d88a1c55d21b13532131524 (patch) | |
tree | 47e14d1fd02f42ba60d334b13312361b8defe689 | |
parent | f1b29223e6b0985070a34b4b5b26e0faad2b9de9 (diff) | |
download | ffmpeg-2e81bb5e92351cc88d88a1c55d21b13532131524.tar.gz |
fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()
-rw-r--r-- | libavutil/fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |