X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Frtpenc_chain.c;h=d3c1bc96dce941ec67612dde25f56daea73698d0;hb=8e789d244cc946bc350672eeb02453918b21a09f;hp=f768fb002ebcb67ed43ac843f9e00d551f252b0e;hpb=fe1fb48e2bd1e5bddcde8b898084851cc8f6939c;p=ffmpeg diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c index f768fb002eb..d3c1bc96dce 100644 --- a/libavformat/rtpenc_chain.c +++ b/libavformat/rtpenc_chain.c @@ -58,7 +58,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, 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 | AVFMT_FLAG_BITEXACT); + rtpctx->flags |= s->flags & AVFMT_FLAG_BITEXACT; /* Get the payload type from the codec */ if (st->id < RTP_PT_PRIVATE) @@ -101,7 +101,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, return 0; fail: - av_free(rtpctx); + avformat_free_context(rtpctx); if (handle) ffurl_close(handle); return ret;