gst-libs/gst/riff/riff-media.c: Support higher max audio rates for some formats (WAV, Vorbis, LPCM).

Original commit message from CVS:
2008-12-09  Julien Moutte  <julien@fluendo.com>

* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
Support higher max audio rates for some formats (WAV, Vorbis, LPCM).
This commit is contained in:
Julien Moutte 2008-12-09 18:30:10 +00:00
parent b3cc87185a
commit b7f763b23f
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-12-09 Julien Moutte <julien@fluendo.com>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
Support higher max audio rates for some formats (WAV, Vorbis, LPCM).
2008-12-09 Stefan Kost <ensonic@users.sf.net>
* gst-libs/gst/riff/riff-read.c:

View file

@ -892,6 +892,7 @@ gst_riff_create_audio_caps (guint16 codec_id,
switch (codec_id) {
case GST_RIFF_WAVE_FORMAT_PCM: /* PCM */
rate_max = 192000;
channels_max = 8;
if (strf != NULL) {
@ -957,6 +958,7 @@ gst_riff_create_audio_caps (guint16 codec_id,
break;
case GST_RIFF_WAVE_FORMAT_IEEE_FLOAT:
rate_max = 192000;
channels_max = 8;
if (strf != NULL) {
@ -1105,6 +1107,7 @@ gst_riff_create_audio_caps (guint16 codec_id,
case GST_RIFF_WAVE_FORMAT_VORBIS1PLUS: /* ogg/vorbis mode 1+ */
case GST_RIFF_WAVE_FORMAT_VORBIS2PLUS: /* ogg/vorbis mode 2+ */
case GST_RIFF_WAVE_FORMAT_VORBIS3PLUS: /* ogg/vorbis mode 3+ */
rate_max = 192000;
caps = gst_caps_new_simple ("audio/x-vorbis", NULL);
if (codec_name)
*codec_name = g_strdup ("Vorbis");