X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmotion_est.c;h=82b5f766eca913c7b9b86b57ccfdabfb83a9d695;hb=b482e2d12fdc380b48a3aa55334c698b9a36b82d;hp=0967b7bb843305eb655fe07dbcde86c444d1a7cf;hpb=267f7edcd1f1f31595610b4de29a8c4d3e7929c5;p=ffmpeg diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 0967b7bb843..82b5f766eca 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; }