From a7f35d4f3c8868f7f586075e0408b66f43acba3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dean=20Zhang=20=28=E5=BC=A0=E5=AE=89=E8=BF=AA=29?= Date: Mon, 11 Nov 2024 16:43:29 +0800 Subject: [PATCH] qtdemux: Add support for m1v fourcc when subtype is vide Some special videos with mlv fourcc can't be recognized by qtdemux when the subtype of the video is vide instead of m1v, and will cause negotiation error in subsequent plugin. So make the handle in qtdemux_video_caps. It might be better than nothing. Part-of: --- subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index 7986a691be..5e3cb1b9e6 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -15500,6 +15500,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, */ case GST_MAKE_FOURCC ('m', 'p', 'e', 'g'): case GST_MAKE_FOURCC ('m', 'p', 'g', '1'): + case GST_MAKE_FOURCC ('m', '1', 'v', ' '): _codec ("MPEG-1 video"); caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 1, "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);