[FFmpeg-devel] [PATCH 1/2] avcodec/vc1dec: Hybrid prediction is not used in B pictures

Michael Niedermayer michaelni at gmx.at
Wed Apr 24 00:29:15 CEST 2013


This makes no difference with any samples i tried
If you have a sample for which this makes a difference, please
send me the sample

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/vc1dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 08bbb88..bc7ffd7 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -1576,7 +1576,7 @@ static inline void vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y,
         if (qy + py > Y) py = Y - qy;
     }
 
-    if (!v->field_mode || s->pict_type != AV_PICTURE_TYPE_B) {
+    if (s->pict_type != AV_PICTURE_TYPE_B) {
         /* Calculate hybrid prediction as specified in 8.3.5.3.5 (also 10.3.5.4.3.5) */
         hybridmv_thresh = 32;
         if (a_valid && c_valid) {
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list