diff h263.c @ 3205:198f8b01424d libavcodec

fixing interlaced direct mode field select values
author michael
date Mon, 20 Mar 2006 01:18:56 +0000
parents 01d00733caee
children ac7bfc9bf1a4
line wrap: on
line diff
--- a/h263.c	Sun Mar 19 11:49:37 2006 +0000
+++ b/h263.c	Mon Mar 20 01:18:56 2006 +0000
@@ -582,6 +582,8 @@
         s->mv_type = MV_TYPE_FIELD;
         for(i=0; i<2; i++){
             int field_select= s->next_picture.ref_index[0][s->block_index[2*i]];
+            s->field_select[0][i]= field_select;
+            s->field_select[1][i]= i;
             if(s->top_field_first){
                 time_pp= s->pp_field_time - field_select + i;
                 time_pb= s->pb_field_time - field_select + i;