From 9dc1d68e2f0e9a3d4cbd81167d11a667a98f2ab9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 29 May 2024 16:36:29 +0300 Subject: [PATCH] codec-utils: Recognise mjpg mime type Add mjpg to gst_codec_utils_caps_from_mime_codec_single() Part-of: --- .../gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c index e62d9eb31c..18f7c92cf9 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c @@ -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;