aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Borsboom <jerome.borsboom@carpalis.nl>2018-05-20 13:45:56 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-05-20 23:56:30 +0200
commitfac5849915973ac09286d2c027237bfd99cc27fe (patch)
tree54cf7b2ffa1299ee16e0db02b8cf6989bba56371
parentcadf7a7f3901bbcacbb21fe33b73477199dd2474 (diff)
downloadffmpeg-fac5849915973ac09286d2c027237bfd99cc27fe.tar.gz
avcodec/vc1: FIELDTX is only present in interlaced frame I/BI pictures
If v->fieldtx_is_raw is not reset to zero, it may spill over from a previous interlaced frame I/BI picture. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/vc1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index b7050440d5..3581d87b57 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1010,7 +1010,8 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
return -1;
av_log(v->s.avctx, AV_LOG_DEBUG, "FIELDTX plane encoding: "
"Imode: %i, Invert: %i\n", status>>1, status&1);
- }
+ } else
+ v->fieldtx_is_raw = 0;
status = bitplane_decoding(v->acpred_plane, &v->acpred_is_raw, v);
if (status < 0)
return -1;