summaryrefslogtreecommitdiff
path: root/src/i965_decoder_utils.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-05-09 16:31:54 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-05-26 12:17:31 +0800
commit3afe0514162332e923092000940ee8e99979a817 (patch)
tree362cac21d8e402227be432b2e14ec29d2110ee72 /src/i965_decoder_utils.c
parente437ae5c33ea6547f88cf2bd1b34159fce95b988 (diff)
downloadlibva-intel-driver-3afe0514162332e923092000940ee8e99979a817.tar.gz
libva-intel-driver-3afe0514162332e923092000940ee8e99979a817.tar.bz2
libva-intel-driver-3afe0514162332e923092000940ee8e99979a817.zip
mpeg2: check frame_pred_frame_dct instead of progressive_frame
Some MPEG-2 videos set progressive_frame to 1 and set frame_pred_frame_dct to 0, which is not conformed to MPEG-2 spec. bottom field may be used to form prediction if frame_pred_frame_dct is 0. Previously the bottom field is excluded from the frame store list https://bugs.freedesktop.org/show_bug.cgi?id=73424 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit b3031d16b1ea9ef2ab95bc09e59f0db5214a1125)
Diffstat (limited to 'src/i965_decoder_utils.c')
-rw-r--r--src/i965_decoder_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_decoder_utils.c b/src/i965_decoder_utils.c
index 617bc15..f579f91 100644
--- a/src/i965_decoder_utils.c
+++ b/src/i965_decoder_utils.c
@@ -139,7 +139,7 @@ mpeg2_set_reference_surfaces(
ref_frames[n++].surface_id = ref_frames[0].surface_id;
}
- if (pic_param->picture_coding_extension.bits.progressive_frame)
+ if (pic_param->picture_coding_extension.bits.frame_pred_frame_dct)
return;
ref_frames[2].surface_id = VA_INVALID_ID;