riff: add ADPCM_G722 support
https://bugzilla.gnome.org/show_bug.cgi?id=746574
This commit is contained in:
parent
03e263b92f
commit
a75be73471
@ -359,6 +359,7 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
|||||||
#define GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC (0x0063)
|
#define GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC (0x0063)
|
||||||
#define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
|
#define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
|
||||||
#define GST_RIFF_WAVE_FORMAT_G722_ADPCM (0x0065)
|
#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_DSAT_DISPLAY (0x0067)
|
||||||
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
|
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
|
||||||
/* FIXME: where are these from? are they used at all? */
|
/* FIXME: where are these from? are they used at all? */
|
||||||
|
@ -1411,6 +1411,15 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
|||||||
block_align = TRUE;
|
block_align = TRUE;
|
||||||
break;
|
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:
|
case GST_RIFF_WAVE_FORMAT_ITU_G726_ADPCM:
|
||||||
if (strf != NULL) {
|
if (strf != NULL) {
|
||||||
gint bitrate;
|
gint bitrate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user