mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 22:42:35 +00:00
libs: encoder: vp9: set VP9_0 profile as default
Commit 0afc8131
introduced a regression and only NV12 format were
admitted, failing in any other valid color format.
This patch sets the profile to GST_VAAPI_PROFILE_VP9_0 by default.
This commit is contained in:
parent
d060582798
commit
e4bb8f5895
1 changed files with 1 additions and 3 deletions
|
@ -159,10 +159,8 @@ ensure_profile (GstVaapiEncoderVP9 * encoder)
|
|||
GST_VIDEO_INFO_FORMAT (GST_VAAPI_ENCODER_VIDEO_INFO (encoder));
|
||||
if (format == GST_VIDEO_FORMAT_P010_10LE)
|
||||
encoder->profile = GST_VAAPI_PROFILE_VP9_2;
|
||||
else if (format == GST_VIDEO_FORMAT_NV12)
|
||||
encoder->profile = GST_VAAPI_PROFILE_VP9_0;
|
||||
else
|
||||
return GST_VAAPI_ENCODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
|
||||
encoder->profile = GST_VAAPI_PROFILE_VP9_0;
|
||||
|
||||
/* Ensure bitrate if not set already */
|
||||
ensure_bitrate (encoder);
|
||||
|
|
Loading…
Reference in a new issue