From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id DE38848CFE for ; Fri, 24 May 2024 00:25:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 231B868D552; Fri, 24 May 2024 03:25:32 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 23BE368D51F for ; Fri, 24 May 2024 03:25:25 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 75DEB1C0002 for ; Fri, 24 May 2024 00:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1716510324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9Emq0Wdbk1VAaBNwt0FDFDL5jOGCxhxd2V6ZSdAa3O0=; b=ed8OqV9PY7k49WgRoVc7Y4SCyJxRyUTo20CafgHabwynBcXOB1tgxyN83t1/RfURwQSr1+ uY8ezwN0rL/aj1XNvscrdX2+DIh//9afCsHM1+oAL5L4fIYDMh+IA//kjBySJ/b9FmEn/8 GOyXGNwQms0wyn01kdfdHaTAVFMsmjkhuec81XP+dvYlonKialTyzqm1D7jxMQ1WMgbOyT GsCi9LSjplBPJK/x8F2+na0cIQZG3UCF9VerZfeoIqL46/6+pUsldgTY4LRfi/K8Mgbk8+ jIq7nLDr/WjjQvO7r5F2m+6IAB100Kcqdlp0Ef/eork0M9/FOhQNya6ntntslA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 24 May 2024 02:25:23 +0200 Message-ID: <20240524002523.2984524-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avformat/demux: Remove dead stores X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: CID1473512 Unused value Fixes: CID1529228 Unused value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/demux.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index ecefe7e0a74..d0a5a39d052 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -2998,9 +2998,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) av_opt_set_int(ic, "skip_clear", 0, AV_OPT_SEARCH_CHILDREN); - if (ret >= 0 && ic->nb_streams) - /* We could not have all the codec parameters before EOF. */ - ret = -1; for (unsigned i = 0; i < ic->nb_streams; i++) { AVStream *const st = ic->streams[i]; FFStream *const sti = ffstream(st); @@ -3022,8 +3019,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) "Could not find codec parameters for stream %d (%s): %s\n" "Consider increasing the value for the 'analyzeduration' (%"PRId64") and 'probesize' (%"PRId64") options\n", i, buf, errmsg, ic->max_analyze_duration, ic->probesize); - } else { - ret = 0; } } -- 2.45.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".