diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-20 01:18:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-20 01:18:56 +0000 |
commit | 1956e16653864b29db5067999c1888f2b38737a6 (patch) | |
tree | 17ae09c348b47325f0c6261816446349508df7c7 | |
parent | 83378d0de520b27ee161e95fb50d385da7fb9cc1 (diff) | |
download | ffmpeg-1956e16653864b29db5067999c1888f2b38737a6.tar.gz |
fixing interlaced direct mode field select values
Originally committed as revision 5183 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 93eddf400b..7ef8d742c3 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -582,6 +582,8 @@ int ff_mpeg4_set_direct_mv(MpegEncContext *s, int mx, int my){ 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; |