[FFmpeg-cvslog] vc1dec: Do not use random pred_flag if motion vector data is skipped
Mashiat Sarker Shakkhar
git at videolan.org
Fri Sep 27 03:10:53 CEST 2013
ffmpeg | branch: release/0.10 | Mashiat Sarker Shakkhar <mashiat.sarker at gmail.com> | Sun Jul 15 07:37:10 2012 +0600| [89d56f3be110ca894ab27b1f9e4e998bb116ee01] | committer: Michael Niedermayer
vc1dec: Do not use random pred_flag if motion vector data is skipped
This fixes SA10143.vc1 from test-suite. Also partially fixes MC-VC1.ts
from videolan streams archive.
Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit 082829520e2191625d3c41ed6ad0522e8d27ebe1)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89d56f3be110ca894ab27b1f9e4e998bb116ee01
---
libavcodec/vc1dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index ee792cd..cc0632c 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -3964,7 +3964,7 @@ static int vc1_decode_p_mb_intfi(VC1Context *v)
s->current_picture.f.mb_type[mb_pos + v->mb_off] = MB_TYPE_16x16;
for (i = 0; i < 6; i++) v->mb_type[0][s->block_index[i]] = 0;
if (idx_mbmode <= 5) { // 1-MV
- dmv_x = dmv_y = 0;
+ dmv_x = dmv_y = pred_flag = 0;
if (idx_mbmode & 1) {
get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag);
}
More information about the ffmpeg-cvslog
mailing list