riff: add waveformatextension ac3 support
authorPete Beardmore <pete.beardmore@msn.com>
Fri, 21 Dec 2012 02:27:12 +0000 (02:27 +0000)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 21 Dec 2012 12:28:41 +0000 (13:28 +0100)
fixes #690591

gst-libs/gst/riff/riff-media.c

index 6ee1b0a..95f6fa7 100644 (file)
@@ -1655,6 +1655,12 @@ gst_riff_create_audio_caps (guint16 codec_id,
             *codec_name = g_strdup ("Mu-law audio");
         } else if (subformat_guid[0] == 0x00000092) {
           GST_DEBUG ("FIXME: handle DOLBY AC3 SPDIF format");
+        } else if (subformat_guid[0] == 0x00002000) {
+          GST_DEBUG ("WAVE_FORMAT_EXTENSIBLE AC-3 audio");
+          channels_max = 6;
+          caps = gst_caps_new_empty_simple ("audio/x-ac3");
+          if (codec_name)
+            *codec_name = g_strdup ("AC-3 audio");
         }
       } else if (subformat_guid[0] == 0x6ba47966 &&
           subformat_guid[1] == 0x41783f83 &&