Browse Source

avcodec/error_resilience: Fix mbskip_table==NULL codepath

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
dd186b5825
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/error_resilience.c

+ 1
- 1
libavcodec/error_resilience.c View 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;


Loading…
Cancel
Save