Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorStefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>2020-05-02 03:20:44 +0300
committerStefanBruens <stefan.bruens@rwth-aachen.de>2020-09-16 03:59:34 +0300
commit6e68873d7f4076e3d659b83c2ea20fbfecc5e07c (patch)
tree9cf87a9ef518c69d5a7997dda68d70f8e787b562 /gst
parent23bb84c868cf7039fa39754cc821e87702b5687c (diff)
qtdemux: Add 'aavd' and related fourcc codes for AAX encrypted audio
The 'aavd' box is contained in the 'stsd' sample description. The 'aavd' box follows the layout of an 'mp4a' entry, i.e. it contains a single standard 'esds' extension box, and the two proprietary 'adrm' and 'aabd' extension boxes. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/577>
Diffstat (limited to 'gst')
-rw-r--r--gst/isomp4/fourcc.h4
-rw-r--r--gst/isomp4/qtdemux.c1
-rw-r--r--gst/isomp4/qtdemux_types.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/gst/isomp4/fourcc.h b/gst/isomp4/fourcc.h
index 7952d8e3a..89cefa152 100644
--- a/gst/isomp4/fourcc.h
+++ b/gst/isomp4/fourcc.h
@@ -403,6 +403,10 @@ G_BEGIN_DECLS
#define FOURCC_tenc GST_MAKE_FOURCC('t','e','n','c')
#define FOURCC_cenc GST_MAKE_FOURCC('c','e','n','c')
+/* Audible AAX encrypted audio */
+#define FOURCC_aavd GST_MAKE_FOURCC('a','a','v','d')
+#define FOURCC_adrm GST_MAKE_FOURCC('a','d','r','m')
+
G_END_DECLS
#endif /* __FOURCC_H__ */
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 182d0bc06..2929cb4a9 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -7856,6 +7856,7 @@ qtdemux_parse_node (GstQTDemux * qtdemux, GNode * node, const guint8 * buffer,
case FOURCC_mp4a:
case FOURCC_alac:
case FOURCC_fLaC:
+ case FOURCC_aavd:
{
guint32 version;
guint32 offset;
diff --git a/gst/isomp4/qtdemux_types.c b/gst/isomp4/qtdemux_types.c
index 9852429ba..15ad3e5e8 100644
--- a/gst/isomp4/qtdemux_types.c
+++ b/gst/isomp4/qtdemux_types.c
@@ -225,6 +225,8 @@ static const QtNodeType qt_node_types[] = {
{FOURCC_av1m, "AV1 Multi-Frame sample group entry", 0},
{FOURCC_av1s, "AV1 S-Frame sample group entry", 0},
{FOURCC_av1M, "AV1 Metadata sample group entry", 0},
+ {FOURCC_aavd, "AAX encrypted audio", 0},
+ {FOURCC_adrm, "AAX DRM key data", 0},
{0, "unknown", 0,},
};