Browse Source

vc1dec: prevent memory leak in error path

Fixes CID732271.
tags/n1.1
Janne Grunau 13 years ago
parent
commit
6f8ef5320f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vc1dec.c

+ 1
- 1
libavcodec/vc1dec.c View File

@@ -5463,7 +5463,7 @@ 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)
return -1;
goto err;

s->low_delay = !avctx->has_b_frames || v->res_sprite;



Loading…
Cancel
Save