aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/motion_est.c
diff options
context:
space:
mode:
authorMichael Niedermayer2006-03-10 22:00:36 +0000
committerMichael Niedermayer2006-03-10 22:00:36 +0000
commit8437ff75f865cdc3849c6518409aa0ef85eb88cf (patch)
tree38959c0052f23a3380eb6cacc6e64bd9f9c5e23a /libavcodec/motion_est.c
parent3aeefb93c8cb1447b5869ebfe133aa7819055462 (diff)
asserts to check if assumed conditions really are true
Originally committed as revision 5143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/motion_est.c')
-rw-r--r--libavcodec/motion_est.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c
index 0967b7bb84..82b5f766ec 100644
--- a/libavcodec/motion_est.c
+++ b/libavcodec/motion_est.c
@@ -901,6 +901,8 @@ static int interlaced_search(MpegEncContext *s, int ref_index,
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;
}