mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: vp9: Fix last/golden/altref frame index setting
Always fill VADecPictureParameterBufferVP9 last/golden/altref indices based on what ever reference frame indices encoded in frame header.
This commit is contained in:
parent
e267e167db
commit
a24918037d
1 changed files with 8 additions and 11 deletions
|
@ -226,17 +226,14 @@ vaapi_fill_ref_frames (GstVaapiDecoderVp9 * decoder, GstVaapiPicture * picture,
|
|||
frame_hdr->ref_frame_indices[GST_VP9_REF_FRAME_LAST - 1];
|
||||
pic_param->pic_fields.bits.last_ref_frame_sign_bias =
|
||||
frame_hdr->ref_frame_sign_bias[GST_VP9_REF_FRAME_LAST - 1];
|
||||
|
||||
if (frame_hdr->ref_frame_indices[1]) {
|
||||
pic_param->pic_fields.bits.golden_ref_frame =
|
||||
frame_hdr->ref_frame_indices[GST_VP9_REF_FRAME_GOLDEN - 1];
|
||||
pic_param->pic_fields.bits.golden_ref_frame_sign_bias =
|
||||
frame_hdr->ref_frame_sign_bias[GST_VP9_REF_FRAME_GOLDEN - 1];
|
||||
pic_param->pic_fields.bits.alt_ref_frame =
|
||||
frame_hdr->ref_frame_indices[GST_VP9_REF_FRAME_ALTREF - 1];
|
||||
pic_param->pic_fields.bits.alt_ref_frame_sign_bias =
|
||||
frame_hdr->ref_frame_sign_bias[GST_VP9_REF_FRAME_ALTREF - 1];
|
||||
}
|
||||
pic_param->pic_fields.bits.golden_ref_frame =
|
||||
frame_hdr->ref_frame_indices[GST_VP9_REF_FRAME_GOLDEN - 1];
|
||||
pic_param->pic_fields.bits.golden_ref_frame_sign_bias =
|
||||
frame_hdr->ref_frame_sign_bias[GST_VP9_REF_FRAME_GOLDEN - 1];
|
||||
pic_param->pic_fields.bits.alt_ref_frame =
|
||||
frame_hdr->ref_frame_indices[GST_VP9_REF_FRAME_ALTREF - 1];
|
||||
pic_param->pic_fields.bits.alt_ref_frame_sign_bias =
|
||||
frame_hdr->ref_frame_sign_bias[GST_VP9_REF_FRAME_ALTREF - 1];
|
||||
}
|
||||
for (i = 0; i < G_N_ELEMENTS (priv->ref_frames); i++) {
|
||||
pic_param->reference_frames[i] =
|
||||
|
|
Loading…
Reference in a new issue