Mercurial > libavcodec.hg
comparison motion_est.c @ 3188:04636faaa720 libavcodec
asserts to check if assumed conditions really are true
author | michael |
---|---|
date | Fri, 10 Mar 2006 22:00:36 +0000 |
parents | 8d1b2cc2a75b |
children | 4baed6f6577b |
comparison
equal
deleted
inserted
replaced
3187:204080942ce2 | 3188:04636faaa720 |
---|---|
899 for(field_select=0; field_select<2; field_select++){ | 899 for(field_select=0; field_select<2; field_select++){ |
900 int dmin, mx_i, my_i; | 900 int dmin, mx_i, my_i; |
901 int16_t (*mv_table)[2]= mv_tables[block][field_select]; | 901 int16_t (*mv_table)[2]= mv_tables[block][field_select]; |
902 | 902 |
903 if(user_field_select){ | 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 if(field_select_tables[block][xy] != field_select) | 906 if(field_select_tables[block][xy] != field_select) |
905 continue; | 907 continue; |
906 } | 908 } |
907 | 909 |
908 P_LEFT[0] = mv_table[xy - 1][0]; | 910 P_LEFT[0] = mv_table[xy - 1][0]; |