Module: wine Branch: master Commit: 34b990fe176672a46a63864b6e121ba88ffecb7e URL: https://gitlab.winehq.org/wine/wine/-/commit/34b990fe176672a46a63864b6e121ba...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu May 25 15:21:18 2023 +0200
winegstreamer: Set the default H264 caps profile to "baseline".
Some elements such as openh264dec require it to be present.
---
dlls/winegstreamer/wg_format.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/wg_format.c b/dlls/winegstreamer/wg_format.c index da0cd052804..a579a1101d1 100644 --- a/dlls/winegstreamer/wg_format.c +++ b/dlls/winegstreamer/wg_format.c @@ -571,11 +571,10 @@ static GstCaps *wg_format_to_caps_video_h264(const struct wg_format *format) GST_FIXME("H264 profile attribute %u not implemented.", format->u.video_h264.profile); /* fallthrough */ case eAVEncH264VProfile_unknown: - profile = NULL; + profile = "baseline"; break; } - if (profile) - gst_caps_set_simple(caps, "profile", G_TYPE_STRING, profile, NULL); + gst_caps_set_simple(caps, "profile", G_TYPE_STRING, profile, NULL);
switch (format->u.video_h264.level) {