mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst-libs/gst/riff/: Detect DTS audio streams (#350157).
Original commit message from CVS: Patch by: Young-Ho Cha <ganadist at chollian net> * gst-libs/gst/riff/riff-ids.h: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps), (gst_riff_create_audio_template_caps): Detect DTS audio streams (#350157).
This commit is contained in:
parent
b2f550b9c7
commit
33e0a62c5c
3 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-08-07 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Young-Ho Cha <ganadist at chollian net>
|
||||
|
||||
* gst-libs/gst/riff/riff-ids.h:
|
||||
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps),
|
||||
(gst_riff_create_audio_template_caps):
|
||||
Detect DTS audio streams (#350157).
|
||||
|
||||
2006-08-05 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* ext/theora/gsttheoraparse.h:
|
||||
|
|
|
@ -299,6 +299,7 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
|||
#define GST_RIFF_WAVE_FORMAT_WMAV3 (0x0162)
|
||||
#define GST_RIFF_WAVE_FORMAT_SONY_ATRAC3 (0x0270)
|
||||
#define GST_RIFF_WAVE_FORMAT_A52 (0x2000)
|
||||
#define GST_RIFF_WAVE_FORMAT_DTS (0x2001)
|
||||
#define GST_RIFF_WAVE_FORMAT_VORBIS1 (0x674f)
|
||||
#define GST_RIFF_WAVE_FORMAT_VORBIS2 (0x6750)
|
||||
#define GST_RIFF_WAVE_FORMAT_VORBIS3 (0x6751)
|
||||
|
|
|
@ -856,6 +856,12 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
|||
if (codec_name)
|
||||
*codec_name = g_strdup ("AC-3 audio");
|
||||
break;
|
||||
case GST_RIFF_WAVE_FORMAT_DTS:
|
||||
channels_max = 6;
|
||||
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
||||
if (codec_name)
|
||||
*codec_name = g_strdup ("DTS audio");
|
||||
break;
|
||||
case GST_RIFF_WAVE_FORMAT_WMAV1:
|
||||
case GST_RIFF_WAVE_FORMAT_WMAV2:
|
||||
case GST_RIFF_WAVE_FORMAT_WMAV3:
|
||||
|
@ -1100,6 +1106,7 @@ gst_riff_create_audio_template_caps (void)
|
|||
GST_RIFF_WAVE_FORMAT_PCM,
|
||||
GST_RIFF_WAVE_FORMAT_VORBIS1,
|
||||
GST_RIFF_WAVE_FORMAT_A52,
|
||||
GST_RIFF_WAVE_FORMAT_DTS,
|
||||
GST_RIFF_WAVE_FORMAT_ALAW,
|
||||
GST_RIFF_WAVE_FORMAT_MULAW,
|
||||
GST_RIFF_WAVE_FORMAT_ADPCM,
|
||||
|
|
Loading…
Reference in a new issue