diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-22 11:54:15 +0100 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-22 13:13:00 +0100 |
commit | 6b5f04100afe6f61990b52d8b138af9cd500a3ff (patch) | |
tree | 9731e994171959a4489b2eb04c389fb21eb684f7 /gst | |
parent | 716ce72e46fa646f5c25cc49aae557ef485949d5 (diff) | |
download | gst-plugins-bad-6b5f04100afe6f61990b52d8b138af9cd500a3ff.tar.gz gst-plugins-bad-6b5f04100afe6f61990b52d8b138af9cd500a3ff.tar.bz2 gst-plugins-bad-6b5f04100afe6f61990b52d8b138af9cd500a3ff.zip |
Add support for AAC audio
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfmpeg.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index 9ae1c2d0..3c0c9b37 100644 --- a/gst/mxf/mxfmpeg.c +++ b/gst/mxf/mxfmpeg.c @@ -328,6 +328,11 @@ static const MXFUL sound_essence_compression_dts = { { 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 * mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags, MXFEssenceElementHandleFunc * handler, gpointer * mapping_data, @@ -438,6 +443,11 @@ mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags, &sound_essence_compression_dts)) { caps = gst_caps_new_simple ("audio/x-dts", NULL); 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) { |