Support gsm_ms in caf files.

This commit is contained in:
Carl Eugen Hoyos 2011-07-09 17:13:13 +02:00
parent a7aabda267
commit 43e96d0466
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ const AVCodecTag ff_codec_caf_tags[] = {
{ CODEC_ID_ADPCM_IMA_QT, MKBETAG('i','m','a','4') },
{ CODEC_ID_AMR_NB, MKBETAG('s','a','m','r') },
{ CODEC_ID_GSM, MKBETAG('a','g','s','m') },
{ CODEC_ID_GSM_MS, MKBETAG('m','s', 0, '1') },
{ CODEC_ID_MACE3, MKBETAG('M','A','C','3') },
{ CODEC_ID_MACE6, MKBETAG('M','A','C','6') },
{ CODEC_ID_MP3, MKBETAG('.','m','p','3') },

View File

@ -72,6 +72,8 @@ static uint32_t samples_per_packet(enum CodecID codec_id) {
case CODEC_ID_GSM:
case CODEC_ID_QCELP:
return 160;
case CODEC_ID_GSM_MS:
return 320;
case CODEC_ID_MP1:
return 384;
case CODEC_ID_MP2: