[4/5] rtpenc_chain: Pass the MP4A_LATM flag to chained muxers

Message ID 1305724910-73938-5-git-send-email-martin@martin.st
State Superseded
Headers show

Commit Message

Martin Storsjö May 18, 2011, 1:21 p.m.
---
 libavformat/rtpenc_chain.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index 1727740..dd88735 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
@@ -48,6 +48,7 @@  AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
     rtpctx->max_delay = s->max_delay;
     /* Copy other stream parameters. */
     rtpctx->streams[0]->sample_aspect_ratio = st->sample_aspect_ratio;
+    rtpctx->flags |= s->flags & AVFMT_FLAG_MP4A_LATM;
 
     /* Set the synchronized start time. */
     rtpctx->start_time_realtime = s->start_time_realtime;