Commit 4776c614 authored by Anton Khirnov's avatar Anton Khirnov Committed by James Almer

decode: avoid leaks on failure in ff_get_buffer()

If the get_buffer() call fails, the frame might have some side data
already set. Make sure it gets freed.

Merges Libav commit de776714.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 195dd5c5
......@@ -1598,6 +1598,9 @@ end:
frame->height = avctx->height;
}
if (ret < 0)
av_frame_unref(frame);
return ret;
}
......
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