Commit 8b85d9bf authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b772b0e2'

* commit 'b772b0e2':
  vc1dec: Undo mpegvideo initialization if unable to allocate tables
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents eed40b29 b772b0e2
......@@ -5926,8 +5926,12 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
}
if (!s->context_initialized) {
if (ff_msmpeg4_decode_init(avctx) < 0 || ff_vc1_decode_init_alloc_tables(v) < 0)
if (ff_msmpeg4_decode_init(avctx) < 0)
goto err;
if (ff_vc1_decode_init_alloc_tables(v) < 0) {
ff_MPV_common_end(s);
goto err;
}
s->low_delay = !avctx->has_b_frames || v->res_sprite;
......
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