From b923a3ed61f62f40c7bceb9928bd8ec3539323a0 Mon Sep 17 00:00:00 2001 From: valadaptive <valadaptive@protonmail.com> Date: Sun, 12 May 2024 18:59:24 -0400 Subject: [PATCH] qtdemux: Add support for Lagarith fourcc tag Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6831> --- subprojects/gst-plugins-good/gst/isomp4/fourcc.h | 1 + subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/isomp4/fourcc.h b/subprojects/gst-plugins-good/gst/isomp4/fourcc.h index 0865a18c9d..c17dbe0956 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/fourcc.h +++ b/subprojects/gst-plugins-good/gst/isomp4/fourcc.h @@ -54,6 +54,7 @@ G_BEGIN_DECLS #define FOURCC_FMP4 GST_MAKE_FOURCC('F','M','P','4') #define FOURCC_H264 GST_MAKE_FOURCC('H','2','6','4') #define FOURCC_H265 GST_MAKE_FOURCC('H','2','6','5') +#define FOURCC_LAGS GST_MAKE_FOURCC('L','A','G','S') #define FOURCC_MAC3 GST_MAKE_FOURCC('M','A','C','3') #define FOURCC_MAC6 GST_MAKE_FOURCC('M','A','C','6') #define FOURCC_MP4V GST_MAKE_FOURCC('M','P','4','V') diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index 84f56974f1..1336324aa4 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -15846,6 +15846,10 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, g_free (format); break; } + case FOURCC_LAGS: + _codec ("Lagarith lossless video codec"); + caps = gst_caps_new_empty_simple ("video/x-lagarith"); + break; case GST_MAKE_FOURCC ('k', 'p', 'c', 'd'): default: {