avformat/rtpenc_mpegts: removed unused check of avformat_free_context

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-11-29 13:15:59 +08:00
parent e880f4fb38
commit 0f79a71353
1 changed files with 1 additions and 2 deletions

View File

@ -106,8 +106,7 @@ fail:
av_dict_free(&mpegts_ctx->metadata);
avformat_free_context(mpegts_ctx);
}
if (rtp_ctx)
avformat_free_context(rtp_ctx);
avformat_free_context(rtp_ctx);
rtp_mpegts_write_close(s);
return ret;
}