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 B7C904B524 for ; Fri, 7 Jun 2024 19:00:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 82D6C68D815; Fri, 7 Jun 2024 22:00:47 +0300 (EEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 42EA968AA84 for ; Fri, 7 Jun 2024 22:00:41 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9252460004 for ; Fri, 7 Jun 2024 19:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1717786840; 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=3T+A2qLKEcLt/tuDjEONGzXPTmQv2jvJ916NHF4iAZ4=; b=MXtDlDbrb3Rw56DgwApw5eoD1ogT4MItqhLsk3nV0UdHsxfsmepXAX48h7WMhtXZArWJCV 0RLxgivF1pVmAeEbjs9icFPlvNispZukDnf8MDuKcGAtCNuQWCB4P8xu01Q3A1roVscdFE M3aILGAOdJwucKuOQCEufDEJt1ZlBRwH5EcjkeLyEAn7QN1IeJMahMYnkbOwCBpqwWmJGE y4RSfWP6bwJDtbFu+BkUCu1CTxOQfjQarPxQogCACaInLdBgIBBnMvvB8G5uC/6NU8Vr1x 70KoA67J7gVU7y0uLTNm3vTlEl0aiK/auNWMqJhAS61qepnHZxMH+q2/xCBiCw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 7 Jun 2024 21:00:39 +0200 Message-ID: <20240607190039.1731735-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH v2] avformat/img2dec: assert no pipe on ts_from_file 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: Help coverity with CID1500302 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/img2dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index ba523530745..20b1bc31f6a 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -25,6 +25,7 @@ #define _DEFAULT_SOURCE #define _BSD_SOURCE #include +#include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/log.h" #include "libavutil/mem.h" @@ -504,6 +505,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) pkt->flags |= AV_PKT_FLAG_KEY; if (s->ts_from_file) { struct stat img_stat; + av_assert0(!s->is_pipe); // The ts_from_file option is not supported by piped input demuxers if (stat(filename, &img_stat)) { res = AVERROR(EIO); goto fail; -- 2.45.2 _______________________________________________ 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".