rtpenc_chain: also copy AVFMT_FLAG_BITEXACT to new AVFormatContext

Otherwise it is impossible to make '-movflags +rtphint' bitexact after
FF_API_LAVF_BITEXACT has been disabled.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
Andreas Cadhalpun 2015-08-23 11:53:09 +02:00
parent 01594ebb07
commit 1bf76cd2db

View File

@ -58,7 +58,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
rtpctx->max_delay = s->max_delay; rtpctx->max_delay = s->max_delay;
/* Copy other stream parameters. */ /* Copy other stream parameters. */
rtpctx->streams[0]->sample_aspect_ratio = st->sample_aspect_ratio; rtpctx->streams[0]->sample_aspect_ratio = st->sample_aspect_ratio;
rtpctx->flags |= s->flags & AVFMT_FLAG_MP4A_LATM; rtpctx->flags |= s->flags & (AVFMT_FLAG_MP4A_LATM | AVFMT_FLAG_BITEXACT);
/* Get the payload type from the codec */ /* Get the payload type from the codec */
if (st->id < RTP_PT_PRIVATE) if (st->id < RTP_PT_PRIVATE)