Message ID | 20210120083414.26006-1-xweimvp@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,v4,1/2] libavformat/sdp.c: add LE16 format(pcm The least significant byte) | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 95f3fbb876..484d30af1b 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -585,6 +585,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int payload_type, p->sample_rate, p->channels); break; + case AV_CODEC_ID_PCM_S16LE: + if (payload_type >= RTP_PT_PRIVATE) + av_strlcatf(buff, size, "a=rtpmap:%d LE16/%d/%d\r\n", + payload_type, + p->sample_rate, p->channels); + break; case AV_CODEC_ID_PCM_S24BE: if (payload_type >= RTP_PT_PRIVATE) av_strlcatf(buff, size, "a=rtpmap:%d L24/%d/%d\r\n",