From 6c1ee1a11446abbe662fc89b9dff0f0a3d5fdd55 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Aug 2014 02:50:41 +0200 Subject: [PATCH] avcodec/h261dec: Fix context initialization sequence Signed-off-by: Michael Niedermayer --- libavcodec/h261dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index dea554b71c..5bc685e2c0 100644 --- a/libavcodec/h261dec.c +++ b/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;