You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit 'b772b0e28eba6abf76d86ee8c6e459a86642db5a'
* commit 'b772b0e28eba6abf76d86ee8c6e459a86642db5a': vc1dec: Undo mpegvideo initialization if unable to allocate tables Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -5926,8 +5926,12 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!s->context_initialized) {
|
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;
|
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;
|
s->low_delay = !avctx->has_b_frames || v->res_sprite;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user