Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit e60af21

Browse files
Jan Burgmeierxhaihao
Jan Burgmeier
authored andcommitted
Since commit 1591f6c WVC1 videos are
decoded with a green color on sandy bridge platforms. This is because of a wrong ptype before this commit ptype was set to GEN6_VC1_BI_PICTURE if picture_type is GEN6_VC1_I_PICTURE and profile is advanced. With this commit the ptype is correctly set to GEN6_VC1_BI_PICTURE for advanced profiles. Maybe this is also needed for the other generations affected by commit 1591f6c but I have no hardware to test it.
1 parent bfd0e7d commit e60af21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gen6_mfd.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1482,8 +1482,11 @@ gen6_mfd_vc1_pic_state(VADriverContextP ctx,
14821482
loopfilter = pic_param->entrypoint_fields.bits.loopfilter;
14831483
}
14841484

1485-
if (picture_type == GEN6_VC1_I_PICTURE || picture_type == GEN6_VC1_BI_PICTURE) /* I picture */
1485+
if (picture_type == GEN6_VC1_I_PICTURE || picture_type == GEN6_VC1_BI_PICTURE) { /* I picture */
14861486
trans_ac_y = pic_param->transform_fields.bits.transform_ac_codingset_idx2;
1487+
if (pic_param->sequence_fields.bits.profile == 3) /* Advanced Profile */
1488+
ptype = GEN6_VC1_BI_PICTURE;
1489+
}
14871490
else {
14881491
trans_ac_y = pic_param->transform_fields.bits.transform_ac_codingset_idx1;
14891492
/*

0 commit comments

Comments
 (0)