diff mbox

[FFmpeg-devel,12/14] avcodec/vc1: correct mspel for field-interlace B frames

Message ID 23397af1-0073-3b89-097f-20194d6ad0c8@carpalis.nl
State Accepted
Commit a1dc0bdaf49497358d70002ffb5ec498f5f41270
Headers show

Commit Message

Jerome Borsboom April 23, 2018, 7 p.m. UTC
mspel indicates the use of bicubic interpolation. The check wrongly included
MVMODE MV_PMODE_1MV_HPEL as using bilinear interpolation.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
---
 libavcodec/vc1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 2b9f8db3ee..20cc84eb8e 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1224,7 +1224,7 @@  int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
             v->mv_mode          = ff_vc1_mv_pmode_table2[lowquant][mvmode];
             v->qs_last          = v->s.quarter_sample;
             v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV || v->mv_mode == MV_PMODE_MIXED_MV);
-            v->s.mspel          = !(v->mv_mode == MV_PMODE_1MV_HPEL_BILIN || v->mv_mode == MV_PMODE_1MV_HPEL);
+            v->s.mspel          = (v->mv_mode != MV_PMODE_1MV_HPEL_BILIN);
             status = bitplane_decoding(v->forward_mb_plane, &v->fmb_is_raw, v);
             if (status < 0)
                 return -1;