# HG changeset patch # User michael # Date 1115892919 0 # Node ID 8e9afac9896bcfca5ea8123f217caadcd94f0c21 # Parent a4e3a37ed57ba62f6c49645f78ae19a90d2cea30 sanity check diff -r a4e3a37ed57b -r 8e9afac9896b mpeg12.c --- a/mpeg12.c Thu May 12 08:44:17 2005 +0000 +++ b/mpeg12.c Thu May 12 10:15:19 2005 +0000 @@ -2621,6 +2621,7 @@ s->current_picture.motion_val[dir][xy + 1][1] = motion_y; s->current_picture.ref_index [dir][xy ]= s->current_picture.ref_index [dir][xy + 1]= s->field_select[dir][i]; + assert(s->field_select[dir][i]==0 || s->field_select[dir][i]==1); } xy += wrap; }