Commit d515e9c2 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

vf_fps: fix a memleak on malloc failure.

parent 3825b526
......@@ -161,8 +161,10 @@ static int write_to_fifo(AVFifoBuffer *fifo, AVFilterBufferRef *buf)
int ret;
if (!av_fifo_space(fifo) &&
(ret = av_fifo_realloc2(fifo, 2*av_fifo_size(fifo))))
(ret = av_fifo_realloc2(fifo, 2*av_fifo_size(fifo)))) {
return ret;
av_fifo_generic_write(fifo, &buf, sizeof(buf), NULL);
return 0;
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