Hi! Attached patch follows RFC 3551, a followup patch adds little-endian G.726 with the old MIME-type.
Please comment, Carl Eugen
From 6ee9178dfad75c4fdb1556e929a59c9d80f0976d Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceffm...@gmail.com> Date: Sat, 26 Aug 2017 11:46:18 +0200 Subject: [PATCH 1/2] lavf/sdp: Fix MIME-type for big-endian G.726. RFC 3551 defines "AAL2-G726" for big-endian ("left-justified") G.726 and "G726" for little-endian ("right-justified") G.726. --- libavformat/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 4e37f65..7751e67 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -674,7 +674,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int break; case AV_CODEC_ID_ADPCM_G726: { if (payload_type >= RTP_PT_PRIVATE) - av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n", + av_strlcatf(buff, size, "a=rtpmap:%d AAL2-G726-%d/%d\r\n", payload_type, p->bits_per_coded_sample*8, p->sample_rate); -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel