Commit dba20b84 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Release old pictures after a resolution change in vp5/6 decoder

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6a0e7892
......@@ -515,6 +515,16 @@ int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if (!res)
return -1;
if (res == 2) {
int i;
for (i = 0; i < 4; i++) {
if (s->frames[i].data[0])
avctx->release_buffer(avctx, &s->frames[i]);
}
if (is_alpha)
return -1;
}
if (!is_alpha) {
p->reference = 1;
if (avctx->get_buffer(avctx, p) < 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