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

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


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Fri Nov 29 13:16:00 2019 +0800| [9cc88ed4b71cdb2ea95e584a9cc3651d1cb52427] | committer: Steven Liu

avformat/smoothstreamingenc: 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=9cc88ed4b71cdb2ea95e584a9cc3651d1cb52427
---

 libavformat/smoothstreamingenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index 1ed19ebb2f..2faf1e7897 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -183,8 +183,7 @@ static void ism_free(AVFormatContext *s)
             av_write_trailer(os->ctx);
         if (os->ctx && os->ctx->pb)
             avio_context_free(&os->ctx->pb);
-        if (os->ctx)
-            avformat_free_context(os->ctx);
+        avformat_free_context(os->ctx);
         av_freep(&os->private_str);
         for (j = 0; j < os->nb_fragments; j++)
             av_freep(&os->fragments[j]);



More information about the ffmpeg-cvslog mailing list