mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
fifo: Return the correct AVERROR value
This commit is contained in:
parent
9bf262f4c6
commit
562ef82d6a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user