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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7855>
This commit is contained in:
Dean Zhang (张安迪) 2024-11-11 16:43:29 +08:00 committed by GStreamer Marge Bot
parent 36d8243397
commit a7f35d4f3c

View file

@ -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', 'e', 'g'):
case GST_MAKE_FOURCC ('m', 'p', 'g', '1'): case GST_MAKE_FOURCC ('m', 'p', 'g', '1'):
case GST_MAKE_FOURCC ('m', '1', 'v', ' '):
_codec ("MPEG-1 video"); _codec ("MPEG-1 video");
caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 1, caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 1,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);