From patchwork Mon Jan 20 07:34:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bodecs Bela X-Patchwork-Id: 17434 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 9BFFD448A07 for ; Mon, 20 Jan 2020 09:35:06 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6B9EE68B0DA; Mon, 20 Jan 2020 09:35:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.vivacom.hu (mail.vivacom.hu [185.92.116.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C849968AE2D for ; Mon, 20 Jan 2020 09:34:59 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by mail.vivacom.hu (Postfix) with ESMTP id 574E389C12 for ; Mon, 20 Jan 2020 08:34:59 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mail.vivacom.hu ([127.0.0.1]) by localhost (mail.vivacom.intra [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vyeheOVXLeLF for ; Mon, 20 Jan 2020 08:34:58 +0100 (CET) Received: from [192.168.0.6] (94-21-161-30.pool.digikabel.hu [94.21.161.30]) by mail.vivacom.hu (Postfix) with ESMTPA id ECA4788D76 for ; Mon, 20 Jan 2020 08:34:57 +0100 (CET) To: FFmpeg development discussions and patches From: Bodecs Bela Message-ID: <31922e5e-3045-0a6f-e090-d78eb745efd0@vivanet.hu> Date: Mon, 20 Jan 2020 08:34:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Language: hu Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: compiler warning fix 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Dear All, This patch corrects compiler warning about returning possibly uninitialized variable in hls_write_header function. please review this patch! Thank you in advance. Bela From e7b3a680f13fd6113f3bf118803d9609d0fe8bda Mon Sep 17 00:00:00 2001 From: Bela Bodecs Date: Mon, 20 Jan 2020 08:31:38 +0100 Subject: [PATCH] avformat/hlsenc: compiler warning fix Correcting compiler warning about returning possibly uninitialized variable in hls_write_header function. Signed-off-by: Bela Bodecs --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index d130f03ea62..1661f7aacba 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2170,7 +2170,7 @@ fail: static int hls_write_header(AVFormatContext *s) { HLSContext *hls = s->priv_data; - int ret, i, j; + int ret = 0, i, j; VariantStream *vs = NULL; for (i = 0; i < hls->nb_varstreams; i++) {