From patchwork Fri May 24 00:25:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 49195 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:542:0:b0:460:55fa:d5ed with SMTP id 63csp1402405vqf; Thu, 23 May 2024 17:25:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCViCHusDbuCLfUP6TPJGcOzDNQUba8/Fc6FWjgvjOblZbZ0X7Oi814Ud6Phr10gpY33LyKb45QSrYRmfyZJ3kBUh5d3d7z3uiF8Sg== X-Google-Smtp-Source: AGHT+IE3xlJCQyt0umWnKk95K0NbTLii2wY6f2S2vD+9Wib2g6e9/U5/kgd8etm+qcUeeY4E+FgX X-Received: by 2002:a05:651c:107b:b0:2dc:bf5c:9648 with SMTP id 38308e7fff4ca-2e95b09b355mr3335521fa.19.1716510336266; Thu, 23 May 2024 17:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716510336; cv=none; d=google.com; s=arc-20160816; b=TlCL9baSdRkXs1wKgiX/KCxiBGD8D+EzI9pOwJiO5lel/xU/HO2bsXbPAAiVip8lEa ewWtr56kIQt/pf/U+oPv9236MsegdCjkDbTqeJY0t5xk9+pAuU03MYxSR1unWJSv6dK5 lwQj1KuBgoFyqRY8/WBiTIYXaN1+FViGYmcFACS7FWc1OM82TWniDqomujRZUSwkYKaY NIoOSMiJ7rssY0l5H4XPMab3gEO3+Bky72kmHkalBylaOvHNse9KPK3GjlMfQZ9HUQCm 1AEdWP61hQLimhjqo8wZxgiyVWvSXWmKnhW51AA3m/2wmi7iq3T3VJYLdPjFxfFHn2ZV vdoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=vmI69xTZotqyHa4bryMhCzmGSYvPVTIUY+I/VnIresM=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=oSB2ayOQgz/QFFXdtelFhSBtwPjeUmiaxvEwhdN9LxVbKIUUzhp2uOqKcps6oFqXsN fnaexhGb7IFX8o8fk6aaVzcV4W/dT+lvTZ6BpCI2RkSmXzjnVEeaCR+I3oSnq4rG9765 4jnjj27VscjqnXOLXB/nMXhIsrnkyDYyuMJVYgHKr7x7huhenhY1jQSMYNXSe3ITPgik 0aM7wmd5jRXFXUfMMf9I3ZEc8n7i4eiIKvKz71GiH/bRsPfWxE+Y6UnzVBLJ2LrTaE6q LRh0mVRFyZv7jvlEsHP2VhB/hLnuE36g2BK+Z0H0RWgrCt7/QZ9J6z1EVfdYSOGgLQ8l eC9Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=ed8OqV9P; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5785245fa59si239596a12.319.2024.05.23.17.25.35; Thu, 23 May 2024 17:25:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=ed8OqV9P; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 70B0568D559; Fri, 24 May 2024 03:25:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: U4lhc1X702WT 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; } }