Commit a701a9cf authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'fc308b30'

* commit 'fc308b30':
  rtpenc_mpegts: Call write_trailer for the mpegts muxer even if no output buffer exists
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6b0f54dd fc308b30
......@@ -32,11 +32,9 @@ static int rtp_mpegts_write_close(AVFormatContext *s)
struct MuxChain *chain = s->priv_data;
if (chain->mpegts_ctx) {
if (!chain->mpegts_ctx->pb)
avio_open_dyn_buf(&chain->mpegts_ctx->pb);
av_write_trailer(chain->mpegts_ctx);
if (chain->mpegts_ctx->pb) {
uint8_t *buf;
av_write_trailer(chain->mpegts_ctx);
avio_close_dyn_buf(chain->mpegts_ctx->pb, &buf);
av_free(buf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment