|
|
|
@ -66,6 +66,7 @@ static int is_supported(enum AVCodecID id) |
|
|
|
|
case AV_CODEC_ID_PCM_S8: |
|
|
|
|
case AV_CODEC_ID_PCM_S16BE: |
|
|
|
|
case AV_CODEC_ID_PCM_S16LE: |
|
|
|
|
case AV_CODEC_ID_PCM_S24BE: |
|
|
|
|
case AV_CODEC_ID_PCM_U16BE: |
|
|
|
|
case AV_CODEC_ID_PCM_U16LE: |
|
|
|
|
case AV_CODEC_ID_PCM_U8: |
|
|
|
@ -544,6 +545,8 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) |
|
|
|
|
case AV_CODEC_ID_PCM_S16BE: |
|
|
|
|
case AV_CODEC_ID_PCM_S16LE: |
|
|
|
|
return rtp_send_samples(s1, pkt->data, size, 16 * st->codecpar->channels); |
|
|
|
|
case AV_CODEC_ID_PCM_S24BE: |
|
|
|
|
return rtp_send_samples(s1, pkt->data, size, 24 * st->codecpar->channels); |
|
|
|
|
case AV_CODEC_ID_ADPCM_G722: |
|
|
|
|
/* The actual sample size is half a byte per sample, but since the
|
|
|
|
|
* stream clock rate is 8000 Hz while the sample rate is 16000 Hz, |
|
|
|
|