mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
vtdec: disable the reorder queue for baseline streams
This commit is contained in:
parent
6e2e8ec0ac
commit
d0ce9a6f7c
1 changed files with 6 additions and 0 deletions
|
@ -738,6 +738,12 @@ compute_h264_decode_picture_buffer_length (GstVtdec * vtdec,
|
||||||
if (vtdec->video_info.width == 0 || vtdec->video_info.height == 0)
|
if (vtdec->video_info.width == 0 || vtdec->video_info.height == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
GST_INFO_OBJECT (vtdec, "parsed profile %d, level %d", profile, level);
|
||||||
|
if (profile == 66) {
|
||||||
|
/* baseline or constrained-baseline, we don't need to reorder */
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
max_dpb_mb_s = get_dpb_max_mb_s_from_level (vtdec, level);
|
max_dpb_mb_s = get_dpb_max_mb_s_from_level (vtdec, level);
|
||||||
if (max_dpb_mb_s == -1) {
|
if (max_dpb_mb_s == -1) {
|
||||||
GST_ELEMENT_ERROR (vtdec, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (vtdec, STREAM, DECODE, (NULL),
|
||||||
|
|
Loading…
Reference in a new issue