aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc.c
diff options
context:
space:
mode:
authorJuan Carlos Rodriguez <ing.juancarlosrodriguez@hotmail.com>2011-05-18 16:21:48 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-05-20 01:44:10 +0200
commitef409645f06368bcdcedd1b7fe19e25699ae5082 (patch)
treec411311e540aae4f4eb5cc8bae47ee48edcc519f /libavformat/rtpenc.c
parentbd61b2a1cac5fcaa9970dffe3b28c52774ea2f09 (diff)
downloadffmpeg-ef409645f06368bcdcedd1b7fe19e25699ae5082.tar.gz
rtpenc: MP4A-LATM payload support
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r--libavformat/rtpenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 71ccdabf4a..7b2e78e88e 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -404,7 +404,10 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
ff_rtp_send_mpegvideo(s1, pkt->data, size);
break;
case CODEC_ID_AAC:
- ff_rtp_send_aac(s1, pkt->data, size);
+ if (s1->flags & AVFMT_FLAG_MP4A_LATM)
+ ff_rtp_send_latm(s1, pkt->data, size);
+ else
+ ff_rtp_send_aac(s1, pkt->data, size);
break;
case CODEC_ID_AMR_NB:
case CODEC_ID_AMR_WB: