sanity check
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 12 May 2005 10:15:19 +0000 (10:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 May 2005 10:15:19 +0000 (10:15 +0000)
Originally committed as revision 4224 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index ba77a91..f84a75a 100644 (file)
@@ -2621,6 +2621,7 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
                     s->current_picture.motion_val[dir][xy + 1][1] = motion_y;
                     s->current_picture.ref_index [dir][xy    ]=
                     s->current_picture.ref_index [dir][xy + 1]= s->field_select[dir][i];
+                    assert(s->field_select[dir][i]==0 || s->field_select[dir][i]==1);
                 }
                 xy += wrap;
             }