mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
Add support for AAC audio
This commit is contained in:
parent
716ce72e46
commit
6b5f04100a
1 changed files with 10 additions and 0 deletions
|
@ -328,6 +328,11 @@ static const MXFUL sound_essence_compression_dts = { {
|
||||||
0x03, 0x02, 0x1c, 0x00}
|
0x03, 0x02, 0x1c, 0x00}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const MXFUL sound_essence_compression_aac = { {
|
||||||
|
0x06, 0x0E, 0x2B, 0x34, 0x04, 0x01, 0x01, 0x03, 0x04, 0x02, 0x02, 0x02,
|
||||||
|
0x03, 0x03, 0x01, 0x00}
|
||||||
|
};
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags,
|
mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags,
|
||||||
MXFEssenceElementHandleFunc * handler, gpointer * mapping_data,
|
MXFEssenceElementHandleFunc * handler, gpointer * mapping_data,
|
||||||
|
@ -438,6 +443,11 @@ mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags,
|
||||||
&sound_essence_compression_dts)) {
|
&sound_essence_compression_dts)) {
|
||||||
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
||||||
codec_name = "Dolby DTS Audio";
|
codec_name = "Dolby DTS Audio";
|
||||||
|
} else if (mxf_ul_is_equal (&s->sound_essence_compression,
|
||||||
|
&sound_essence_compression_aac)) {
|
||||||
|
caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT,
|
||||||
|
2, NULL);
|
||||||
|
codec_name = "MPEG-2 AAC Audio";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caps) {
|
if (caps) {
|
||||||
|
|
Loading…
Reference in a new issue