From patchwork Fri Nov 29 05:16:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 16482 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0EE3A44A902 for ; Fri, 29 Nov 2019 07:16:23 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EA8D768B2B1; Fri, 29 Nov 2019 07:16:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9380168B2CA for ; Fri, 29 Nov 2019 07:16:16 +0200 (EET) X-QQ-mid: bizesmtp17t1575004572ti0g0czi Received: from localhost (unknown [47.90.47.25]) by esmtp6.qq.com (ESMTP) with id ; Fri, 29 Nov 2019 13:16:11 +0800 (CST) X-QQ-SSF: 01100000000000K0ZSF1000A0000000 X-QQ-FEAT: Hn8w8FUMsjbkntu/8tOLcARYGd0Y08pCLlsu1nvxt+kWiiOh/1gHNFajIA9Of wB0gY3TEcpck+IhfPFvzajlO7av9pWNIKxrd/OdUCOIo+VFIDbI/dsdYqUvLyHev8Yx2L0d F+zNKo82wToHpOS1UnQXafkfxRDWCkk7RDjT5Or/T9a0721cSDWlMR+mfCAG3abR2ugmJ7A +NLrLsNIwEInUG8hr0s9NYfsS//mVJ6xehgLtW15UblrmQ3uwf2tpeXuJm/ajSSb5GnnFvp 6NKRPsn6LL6lbPcozkDgsNUUzRu/9OsLpqb03k76ZmJHv+hSkENNt4mSbWatsfIfI82g== X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Nov 2019 13:16:00 +0800 Message-Id: <20191129051600.29619-4-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.10.1.382.ga23ca1b.dirty In-Reply-To: <20191129051600.29619-1-lq@chinaffmpeg.org> References: <20191129051600.29619-1-lq@chinaffmpeg.org> X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign7 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH v1 4/4] avformat/smoothstreamingenc: removed unused check of avformat_free_context X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Steven Liu --- 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]);