changeset 1946:f9212b59a802 libavcodec

fix exported motion vectors
author michael
date Sun, 18 Apr 2004 17:46:52 +0000
parents 32f68745c431
children b306574523ad
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sat Apr 17 19:41:49 2004 +0000
+++ b/mpeg12.c	Sun Apr 18 17:46:52 2004 +0000
@@ -2334,7 +2334,7 @@
                 for(dir=0; dir<2; dir++){
                     if (s->mb_intra || (dir==1 && s->pict_type != B_TYPE)) {
                         motion_x = motion_y = 0;
-                    }else if (s->mv_type == MV_TYPE_16X16){
+                    }else if (s->mv_type == MV_TYPE_16X16 || (s->mv_type == MV_TYPE_FIELD && field_pic)){
                         motion_x = s->mv[dir][0][0];
                         motion_y = s->mv[dir][0][1];
                     } else /*if ((s->mv_type == MV_TYPE_FIELD) || (s->mv_type == MV_TYPE_16X8))*/ {