mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
libs: decoder: h264, h265: in context at least 16 reference surfaces
Registering only stream's DBP size number of surfaces for decoding VA surfaces brings issues for certain streams. This change register all possible number of reference surfaces in a stream, which is 16. Fixes: #94
This commit is contained in:
parent
aa7370943d
commit
b387081a4d
2 changed files with 2 additions and 2 deletions
|
@ -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 = dpb_size;
|
||||
info.ref_frames = 16;
|
||||
|
||||
if (!gst_vaapi_decoder_ensure_context (GST_VAAPI_DECODER (decoder), &info))
|
||||
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;
|
||||
|
|
|
@ -1201,7 +1201,7 @@ ensure_context (GstVaapiDecoderH265 * decoder, GstH265SPS * sps)
|
|||
info.chroma_type = priv->chroma_type;
|
||||
info.width = sps->width;
|
||||
info.height = sps->height;
|
||||
info.ref_frames = dpb_size;
|
||||
info.ref_frames = 16;
|
||||
|
||||
if (!gst_vaapi_decoder_ensure_context (GST_VAAPI_DECODER (decoder), &info))
|
||||
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;
|
||||
|
|
Loading…
Reference in a new issue