mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:28:32 +00:00
gstvaapiencoder: Fix the negotiation issue with _ENCODED format handling
Don't error out for the video format GST_VIDEO_FORMAT_ENCODED with in gstvaapiencoder, since the vaaapi context creation (gstvaapicontext.c) can still use the default chroma type which is YUV420. https://bugzilla.gnome.org/show_bug.cgi?id=743567 https://bugzilla.gnome.org/show_bug.cgi?id=743035
This commit is contained in:
parent
ad2941c44b
commit
cffe87df89
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ set_context_info (GstVaapiEncoder * encoder)
|
||||||
cip->height = GST_VAAPI_ENCODER_HEIGHT (encoder);
|
cip->height = GST_VAAPI_ENCODER_HEIGHT (encoder);
|
||||||
cip->ref_frames = encoder->num_ref_frames;
|
cip->ref_frames = encoder->num_ref_frames;
|
||||||
|
|
||||||
if (!cip->chroma_type)
|
if (!cip->chroma_type && (format != GST_VIDEO_FORMAT_ENCODED))
|
||||||
goto error_unsupported_format;
|
goto error_unsupported_format;
|
||||||
|
|
||||||
memset (config, 0, sizeof (*config));
|
memset (config, 0, sizeof (*config));
|
||||||
|
|
Loading…
Reference in a new issue