On Tue, 7 Oct 2014, Josh Allmann wrote:
May occur if trying to transmux from eg, MPEG2-TS to RTP. ---Untested with anything beyond SDP generation. libavformat/rtpenc.c | 4 ++++ libavformat/sdp.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 7bc7373..b739fd0 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -56,6 +56,7 @@ static int is_supported(enum AVCodecID id) case AV_CODEC_ID_MPEG2VIDEO: case AV_CODEC_ID_MPEG4: case AV_CODEC_ID_AAC: + case AV_CODEC_ID_AAC_LATM: case AV_CODEC_ID_MP2: case AV_CODEC_ID_MP3: case AV_CODEC_ID_PCM_ALAW: @@ -543,6 +544,9 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) else ff_rtp_send_aac(s1, pkt->data, size); break; + case AV_CODEC_ID_AAC_LATM: + ff_rtp_send_latm(s1, pkt->data, size); + break;
I'm pretty sure this part doesn't really work, since ff_rtp_send_latm expects to either get plain raw AAC payloads, or ADTS. It might perhaps work with rtp_send_raw but you'd have to test it, I don't remember offhand if there's something else that needs to be done (or whether what's in AV_CODEC_ID_AAC_LATM is identical with RTP LATM payloads).
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
