From patchwork Fri Nov 17 17:13:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 44700 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6a89:b0:181:818d:5e7f with SMTP id bi9csp21629pzb; Fri, 17 Nov 2023 09:14:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHft2iOQkpMrak+sXGfEI0Q5dJCJxj7B/aYs8XeBvTQeFEb3Sr04h21jt8uwpu1AGFS6fBJ X-Received: by 2002:ac2:5a59:0:b0:50a:711d:23f5 with SMTP id r25-20020ac25a59000000b0050a711d23f5mr159271lfn.28.1700241247643; Fri, 17 Nov 2023 09:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700241247; cv=none; d=google.com; s=arc-20160816; b=SI8e/jJDPyAXRgjE6XIqIv4YExbdgxuO9PUEDcvDEgMLWI8QJlwuIV6qumitRqP/XE aI6NdhRBJZH8L7Vdb+n34CJJ9vyu9cmIivuLNNtPDSkI1Ed4jHXEh2BJDvmfkjoOrWtU 1mO7fWa0XdX6vf8cLp7V9knqgvrHgSsCn31R+Lt1fRCOipAYqVwhsZlcGGgO95ANKWCc 0oqCwx1W9jDNdDW6NfH1s5eeZhp9h2ALz30++X1Ab+hr4sg5e+y357y2K1R3Pjculba1 eX+3uRCUNq5fjX80JH6llH2bqLLTpWkJp4GJKZfXjTRj9LFREqA8jsKKCfEFsl+jvCLI 32ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to; bh=yt/DfTyxJVm6TlLm6jb2GKXJ+pCP6yx479Q9jxAFsBc=; fh=CKKWKRRxJFp2Gk79cAZNmsLaiZomfqSuOoGFNX4svos=; b=bfe1I+zSPhOpqLiWOt6GLKjhR8sHDp1UTs5CHEQcjxXiJExafidV1mAwLAbZc6+gQW 2oNALi6S4f8HSOAM6EM3aKgvVEezeW0Wju4L5VHk2RYNURaWcK23xYkKxS+rgjY31U/u EbL0nigVtb9CTH5A62iy1ru0s2vzKG8QvpUjnGMLTK0b29N9VYXnv8izWnxqs9OGeyfw t3z1dQzbbB5aeJfMXtUJicqLUR11/SXhCA4f+sg6PfFUUMG2HTYS32OUKc5E6+YyYBRw tA4uHy0PB7gx8a+MFLbMMAL7DKqCpMorxmbXNUW2HjKT3Jn6S6S6b0LlNZCIRfUXddvd 3XYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 jr8-20020a170906a98800b009c5706905cbsi1098313ejb.906.2023.11.17.09.13.47; Fri, 17 Nov 2023 09:14:07 -0800 (PST) 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; 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 5BCF568CD08; Fri, 17 Nov 2023 19:13:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2430B68CC04 for ; Fri, 17 Nov 2023 19:13:37 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 424D3FF805; Fri, 17 Nov 2023 17:13:36 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 17 Nov 2023 18:13:35 +0100 Message-Id: <20231117171335.3338-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avformat/mov: Fix MSAN issue with stsd_id 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 Cc: Thomas Guilbert MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pm591K4OMiFb From: Thomas Guilbert Fixes: use of uninitialized value Fixes: bbb-320x240-2video-2audio.mp4 Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index e8efccf6ebf..2977d4e55eb 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1466,6 +1466,7 @@ static int update_frag_index(MOVContext *c, int64_t offset) frag_stream_info[i].index_base = -1; frag_stream_info[i].index_entry = -1; frag_stream_info[i].encryption_index = NULL; + frag_stream_info[i].stsd_id = -1; } if (index < c->frag_index.nb_items)