summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2017-01-26 00:06:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2017-01-26 10:25:20 +0100
commit562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b (patch)
tree7429e5205d13109713184a2609c0f9991861286c
parent9bf262f4c6e14f43f291cdb745ed372884ee2a7f (diff)
fifo: Return the correct AVERROR value
-rw-r--r--libavutil/fifo.c2
1 files changed, 1 insertions, 1 deletions
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;