aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMashiat Sarker Shakkhar <mashiat.sarker@gmail.com>2012-07-15 07:37:10 +0600
committerMichael Niedermayer <michaelni@gmx.at>2013-09-27 03:03:40 +0200
commit89d56f3be110ca894ab27b1f9e4e998bb116ee01 (patch)
treef90bdd51d7737bc33e46987b4614b057d1cac35d /libavcodec
parent0d1ae06fe95e2dd010025acda2d799240d651d6e (diff)
downloadffmpeg-89d56f3be110ca894ab27b1f9e4e998bb116ee01.tar.gz
vc1dec: Do not use random pred_flag if motion vector data is skippedn0.10.9
This fixes SA10143.vc1 from test-suite. Also partially fixes MC-VC1.ts from videolan streams archive. Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit 082829520e2191625d3c41ed6ad0522e8d27ebe1) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index ee792cdbf8..cc0632c667 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);
}