Commit 2e81bb5e authored by Stefano Sabatini's avatar Stefano Sabatini

fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()

parent f1b29223
...@@ -68,7 +68,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) ...@@ -68,7 +68,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size)
AVFifoBuffer *f2 = av_fifo_alloc(new_size); AVFifoBuffer *f2 = av_fifo_alloc(new_size);
if (!f2) if (!f2)
return -1; return AVERROR(ENOMEM);
av_fifo_generic_read(f, f2->buffer, len, NULL); av_fifo_generic_read(f, f2->buffer, len, NULL);
f2->wptr += len; f2->wptr += len;
f2->wndx += len; f2->wndx += len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment