You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Martin Storsjö
parent
25f056e6d4
commit
082829520e
@@ -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;
|
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;
|
for (i = 0; i < 6; i++) v->mb_type[0][s->block_index[i]] = 0;
|
||||||
if (idx_mbmode <= 5) { // 1-MV
|
if (idx_mbmode <= 5) { // 1-MV
|
||||||
dmv_x = dmv_y = 0;
|
dmv_x = dmv_y = pred_flag = 0;
|
||||||
if (idx_mbmode & 1) {
|
if (idx_mbmode & 1) {
|
||||||
get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag);
|
get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user