[FFmpeg-cvslog] avformat/rtpenc_mpegts: removed unused check of avformat_free_context

Steven Liu git at videolan.org
Sun Dec 1 18:10:44 EET 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Fri Nov 29 13:15:59 2019 +0800| [0f79a71353faeef6bc067a0cf3f2f982d732b9dd] | committer: Steven Liu

avformat/rtpenc_mpegts: removed unused check of avformat_free_context

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Reviewed-by: Jun Zhao <barryjzhao at tencent.com>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f79a71353faeef6bc067a0cf3f2f982d732b9dd
---

 libavformat/rtpenc_mpegts.c | 3 +--
 1 file changed, 1 insertion(+), 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;
 }



More information about the ffmpeg-cvslog mailing list