Revert "libs: decoder: h264, h265: in context at least 16 reference surfaces"

This reverts commit b387081a4d as discussed in
b387081a4d
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-08-22 12:53:12 +02:00
parent 0320e7a3b6
commit f822366f92
2 changed files with 2 additions and 2 deletions

View file

@ -1623,7 +1623,7 @@ ensure_context (GstVaapiDecoderH264 * decoder, GstH264SPS * sps)
info.chroma_type = priv->chroma_type;
info.width = sps->width;
info.height = sps->height;
info.ref_frames = 16;
info.ref_frames = dpb_size;
if (!gst_vaapi_decoder_ensure_context (GST_VAAPI_DECODER (decoder), &info))
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;

View file

@ -1202,7 +1202,7 @@ ensure_context (GstVaapiDecoderH265 * decoder, GstH265SPS * sps)
info.chroma_type = priv->chroma_type;
info.width = sps->width;
info.height = sps->height;
info.ref_frames = 16;
info.ref_frames = dpb_size;
if (!gst_vaapi_decoder_ensure_context (GST_VAAPI_DECODER (decoder), &info))
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;