@@ -37,6 +37,7 @@ version <next>:
- libfaac encoder removed
- Matroska muxer now writes CRC32 elements by default in all Level 1 elements
- sidedata video and asidedata audio filter
+- Changed mapping of rtp MIME type G726 to codec g726le.
version 3.1:
@@ -36,10 +36,16 @@ static av_cold int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, \
} \
\
RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
- .enc_name = "G726-" #bitrate, \
+ .enc_name = "AAL2-G726-" #bitrate, \
.codec_type = AVMEDIA_TYPE_AUDIO, \
.codec_id = AV_CODEC_ID_ADPCM_G726, \
.init = g726_ ## bitrate ## _init, \
+}; \
+RTPDynamicProtocolHandler ff_g726le_ ## bitrate ## _dynamic_handler = { \
+ .enc_name = "G726-" #bitrate, \
+ .codec_type = AVMEDIA_TYPE_AUDIO, \
+ .codec_id = AV_CODEC_ID_ADPCM_G726LE, \
+ .init = g726_ ## bitrate ## _init, \
}
RTP_G726_HANDLER(16);
Hi! Attached patch fixes ticket #5890, completely untested. Please comment, Carl Eugen From 8c5bb7f00be92f3adf08a6d46a6888dd2ab707b5 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <cehoyos@ag.or.at> Date: Fri, 14 Oct 2016 15:05:05 +0200 Subject: [PATCH] lavf/rtpdec_g726: Map mime type G726 to g726le. Add new mime types AAL2-G726 for g726 as suggested in rfc 3551. This patch will break applications that incorrectly use big-endian G.726 with mime type G726 but we know of at least one device (DVTel camera) that correctly implements the rfc, so do the same. Fixes ticket #5890. --- Changelog | 1 + libavformat/rtpdec_g726.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)