[Ffmpeg-cvslog] r5601 - trunk/libavcodec/vc1.c

kostya subversion
Mon Jul 3 19:22:18 CEST 2006


Author: kostya
Date: Mon Jul  3 19:22:18 2006
New Revision: 5601

Modified:
   trunk/libavcodec/vc1.c

Log:
Correctly detect when use hpel or qpel mode


Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Mon Jul  3 19:22:18 2006
@@ -1330,7 +1330,12 @@
         }
         if(v->mv_mode == MV_PMODE_1MV_HPEL || v->mv_mode == MV_PMODE_1MV_HPEL_BILIN)
             v->s.quarter_sample = 0;
-        else
+        else if(v->mv_mode == MV_PMODE_INTENSITY_COMP) {
+            if(v->mv_mode2 == MV_PMODE_1MV_HPEL || v->mv_mode2 == MV_PMODE_1MV_HPEL_BILIN)
+                v->s.quarter_sample = 0;
+            else
+                v->s.quarter_sample = 1;
+        } else
             v->s.quarter_sample = 1;
 
         if ((v->mv_mode == MV_PMODE_INTENSITY_COMP &&




More information about the ffmpeg-cvslog mailing list