Browse code

asserts to check if assumed conditions really are true

Originally committed as revision 5143 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2006/03/11 07:00:36
Showing 1 changed files
... ...
@@ -901,6 +901,8 @@ static int interlaced_search(MpegEncContext *s, int ref_index,
901 901
             int16_t (*mv_table)[2]= mv_tables[block][field_select];
902 902
 
903 903
             if(user_field_select){
904
+                assert(field_select==0 || field_select==1);
905
+                assert(field_select_tables[block][xy]==0 || field_select_tables[block][xy]==1);
904 906
                 if(field_select_tables[block][xy] != field_select)
905 907
                     continue;
906 908
             }