diff options
author | Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com> | 2012-07-15 05:37:10 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-07-15 15:02:38 +0400 |
commit | 082829520e2191625d3c41ed6ad0522e8d27ebe1 (patch) | |
tree | c89de6ee293c032d4464aed20953c4e7a6cfff2c /libavcodec/vc1dec.c | |
parent | 25f056e6d4229937cff8a8c3e974c56b9f94df3c (diff) |
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@martin.st>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 0f56e22fe4..51124cf7cd 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -3950,7 +3950,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); } |