avcodec/error_resilience: Fix mbskip_table==NULL codepath
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2015 18:24:03 +0000 (19:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2015 18:24:03 +0000 (19:24 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/error_resilience.c

index 716fd60..3366db1 100644 (file)
@@ -1024,7 +1024,7 @@ void ff_er_frame_end(ERContext *s)
             const int mb_xy = s->mb_index2xy[i];
             int       error = s->error_status_table[mb_xy];
 
-            if (s->mbskip_table && !s->mbskip_table[mb_xy]) // FIXME partition specific
+            if (!s->mbskip_table || !s->mbskip_table[mb_xy]) // FIXME partition specific
                 distance++;
             if (error & (1 << error_type))
                 distance = 0;