avcodec/h261dec: Fix context initialization sequence

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/74/merge
Michael Niedermayer 10 years ago
parent 595c63357c
commit 6c1ee1a114
  1. 3
      libavcodec/h261dec.c

@ -609,11 +609,10 @@ retry:
s->parse_context = pc;
}
if (!s->context_initialized)
if (!s->context_initialized) {
if ((ret = ff_MPV_common_init(s)) < 0)
return ret;
if (!s->context_initialized) {
ret = ff_set_dimensions(avctx, s->width, s->height);
if (ret < 0)
return ret;

Loading…
Cancel
Save