History

vc1dec: Try to fix vc1_mc_4mv_chroma4() parameters

This fixes several chroma artifacts in several videos

Michael Niedermayer committed 13 years ago

Commit 688fc4a1 parent 9b49d391 file · +3 −1Browse files

Unified · Split

libavcodec/vc1dec.c+3−1
@@ -4553,6 +4553,7 @@ static int vc1_decode_b_mb_intfr(VC1Context *v) · 4552 unmodified lines
45534553 vc1_mc_4mv_luma(v, i, 1, 1);
45544554 }
45554555 vc1_mc_4mv_chroma4(v, 0, 0, 0);
4556+ vc1_mc_4mv_chroma4(v, 1, 1, 1);
45564557 } else {
45574558 vc1_mc_1mv(v, 0);
45584559 vc1_interp_mc(v);
@@ -4573,6 +4574,7 @@ static int vc1_decode_b_mb_intfr(VC1Context *v) · 14 unmodified lines
45734574 }
45744575
45754576 vc1_mc_4mv_chroma4(v, 0, 0, 0);
4577+ vc1_mc_4mv_chroma4(v, 1, 1, 1);
45764578 } else if (bmvtype == BMV_TYPE_INTERPOLATED) {
45774579 mvbp = v->twomvbp;
45784580 dmv_x = dmv_y = 0;
@@ -4624,7 +4626,7 @@ static int vc1_decode_b_mb_intfr(VC1Context *v) · 45 unmodified lines
46244626 vc1_mc_4mv_luma(v, 1, dir, 0);
46254627 vc1_mc_4mv_luma(v, 2, dir2, 0);
46264628 vc1_mc_4mv_luma(v, 3, dir2, 0);
4627− vc1_mc_4mv_chroma4(v, 0, 0, 0);
4629+ vc1_mc_4mv_chroma4(v, dir, dir2, 0);
46284630 } else {
46294631 dir = bmvtype == BMV_TYPE_BACKWARD;
46304632

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t