aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-11-29 13:15:59 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-12-02 00:08:21 +0800
commit0f79a71353faeef6bc067a0cf3f2f982d732b9dd (patch)
treee3c163ebc0acd215b265a597452c95af3591a30e
parente880f4fb387b00a29985dd0041b94e82358df219 (diff)
downloadffmpeg-0f79a71353faeef6bc067a0cf3f2f982d732b9dd.tar.gz
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>
-rw-r--r--libavformat/rtpenc_mpegts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c
index 45ba6fffe5..7d7377db7a 100644
--- a/libavformat/rtpenc_mpegts.c
+++ b/libavformat/rtpenc_mpegts.c
@@ -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;
}