From 7f89085251ebecae002c965a14e15c181435cc7a Mon Sep 17 00:00:00 2001 From: yychao Date: Tue, 10 Mar 2020 17:19:46 +0800 Subject: [PATCH] qtdemux: Add support for AC4 The caps received from qtdemux for AC-4 content are audio/x-gst-fourcc-ac_4 Based on patch by: Savinderjit Kaur Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/413 --- gst/isomp4/qtdemux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 11e83da91d..7865eee2dd 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -15895,6 +15895,12 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, } break; } + case GST_MAKE_FOURCC ('a', 'c', '-', '4'): + { + _codec ("AC4"); + caps = gst_caps_new_empty_simple ("audio/x-ac4"); + break; + } case GST_MAKE_FOURCC ('q', 't', 'v', 'r'): /* ? */ default: