diff mbox series

[FFmpeg-devel,v4,1/2] libavformat/sdp.c: add LE16 format(pcm The least significant byte)

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

Checks

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

Commit Message

xweimvp@gmail.com Jan. 20, 2021, 8:34 a.m. UTC
From: weishao <xweimvp@gmail.com>

Signed-off-by: weishao <xweimvp@gmail.com>
---
 libavformat/sdp.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

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",