riff: add ADPCM_G722 support

https://bugzilla.gnome.org/show_bug.cgi?id=746574
This commit is contained in:
Nicola Murino 2015-03-28 18:16:16 +01:00 committed by Sebastian Dröge
parent 03e263b92f
commit a75be73471
2 changed files with 10 additions and 0 deletions

View file

@ -359,6 +359,7 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
#define GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC (0x0063)
#define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
#define GST_RIFF_WAVE_FORMAT_G722_ADPCM (0x0065)
#define GST_RIFF_WAVE_FORMAT_ADPCM_G722 (0x028F)
#define GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY (0x0067)
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
/* FIXME: where are these from? are they used at all? */

View file

@ -1411,6 +1411,15 @@ gst_riff_create_audio_caps (guint16 codec_id,
block_align = TRUE;
break;
case GST_RIFF_WAVE_FORMAT_ADPCM_G722:
rate_min = 16000;
rate_max = 16000;
channels_max = 1;
caps = gst_caps_new_empty_simple ("audio/G722");
if (codec_name)
*codec_name = g_strdup ("G722 audio");
break;
case GST_RIFF_WAVE_FORMAT_ITU_G726_ADPCM:
if (strf != NULL) {
gint bitrate;