mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
libs: context: use queried value for attrib
Attribute's value should use returned value from get_attribute for VAConfigAttribRTFormat, since VAProfileHEVCMain10, in AMD Mesa Gallium, can process either VA_RT_FORMAT_420 and VA_RT_FORMAT_420_10, which isn't considered in gstreamer-vaapi design, where encoder's src pads will expose only 4:2:0 color formats but no 4:2:0 10bit. So, this is a workaround for this issue while new vah265enc is released. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3397>
This commit is contained in:
parent
b2bfb066ec
commit
416446b25c
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ config_create (GstVaapiContext * context)
|
||||||
string_of_va_chroma_format (va_chroma_format));
|
string_of_va_chroma_format (va_chroma_format));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
attrib->value = va_chroma_format;
|
attrib->value = value;
|
||||||
attrib = &attribs[++attrib_index];
|
attrib = &attribs[++attrib_index];
|
||||||
g_assert (attrib_index < G_N_ELEMENTS (attribs));
|
g_assert (attrib_index < G_N_ELEMENTS (attribs));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue