codec-utils: Recognise mjpg mime type

Add mjpg to gst_codec_utils_caps_from_mime_codec_single()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6969>
This commit is contained in:
Jan Schmidt 2024-05-29 16:36:29 +03:00 committed by GStreamer Marge Bot
parent ef0e822559
commit 9dc1d68e2f

View file

@ -3215,6 +3215,9 @@ gst_codec_utils_caps_from_mime_codec_single (const gchar * codec)
gst_caps_new_simple ("audio/x-adpcm", "layout", G_TYPE_STRING, "g726",
NULL);
break;
case GST_MAKE_FOURCC ('m', 'j', 'p', 'g'):
caps = gst_caps_new_empty_simple ("image/jpeg");
break;
default:
GST_WARNING ("Unknown codec '%s' please file a bug", codec);
break;