mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
vc1dec: prevent memory leak in error path
Fixes CID732271.
This commit is contained in:
parent
714f5ab597
commit
6f8ef5320f
@ -5463,7 +5463,7 @@ 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 || ff_vc1_decode_init_alloc_tables(v) < 0)
|
||||||
return -1;
|
goto err;
|
||||||
|
|
||||||
s->low_delay = !avctx->has_b_frames || v->res_sprite;
|
s->low_delay = !avctx->has_b_frames || v->res_sprite;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user