mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()
This commit is contained in:
parent
f1b29223e6
commit
2e81bb5e92
@ -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