changeset 3188:04636faaa720 libavcodec

asserts to check if assumed conditions really are true
author michael
date Fri, 10 Mar 2006 22:00:36 +0000
parents 204080942ce2
children e1cbe2635325
files motion_est.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Fri Mar 10 21:20:49 2006 +0000
+++ b/motion_est.c	Fri Mar 10 22:00:36 2006 +0000
@@ -901,6 +901,8 @@
             int16_t (*mv_table)[2]= mv_tables[block][field_select];
 
             if(user_field_select){
+                assert(field_select==0 || field_select==1);
+                assert(field_select_tables[block][xy]==0 || field_select_tables[block][xy]==1);
                 if(field_select_tables[block][xy] != field_select)
                     continue;
             }