avcodec/h261dec: Fix context initialization sequence
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Aug 2014 00:50:41 +0000 (02:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Aug 2014 00:53:48 +0000 (02:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h261dec.c

index dea554b..5bc685e 100644 (file)
@@ -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;