mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
nvdec: Fix for HEVC decoding when coded resolution is larger than display resolution
As documented in the SDK header, we should set coded width/height values to the corresponding decoder configuration option, instead of display resolution Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1438 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3143>
This commit is contained in:
parent
b5fde8d856
commit
05c503ff4a
1 changed files with 2 additions and 2 deletions
|
@ -527,8 +527,8 @@ parser_sequence_callback (GstNvDec * nvdec, CUVIDEOFORMAT * format)
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (nvdec, "creating decoder");
|
GST_DEBUG_OBJECT (nvdec, "creating decoder");
|
||||||
create_info.ulWidth = width;
|
create_info.ulWidth = format->coded_width;
|
||||||
create_info.ulHeight = height;
|
create_info.ulHeight = format->coded_height;
|
||||||
create_info.ulNumDecodeSurfaces = nvdec->num_decode_surface;
|
create_info.ulNumDecodeSurfaces = nvdec->num_decode_surface;
|
||||||
create_info.CodecType = format->codec;
|
create_info.CodecType = format->codec;
|
||||||
create_info.ChromaFormat = format->chroma_format;
|
create_info.ChromaFormat = format->chroma_format;
|
||||||
|
|
Loading…
Reference in a new issue