From patchwork Tue Aug 6 22:18:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 50914 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d7b2:0:b0:489:2eb3:e4c4 with SMTP id dc18csp22214vqb; Tue, 6 Aug 2024 15:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXRpVJJba5O7vHR0enp0T+gpFoPZAIkMcZb1H7uQmMGVCafHXnCIayLwjPIzvu3SjcjDYmx007BD7A+tq8TgHZBWsDk+bP/a5e6hA== X-Google-Smtp-Source: AGHT+IFjQnBp1GLr8KyHVFXjQJJKeKTIjP5jpvev4/ghbgLoxl3sniCnTbaeHZjIXghJ90rV1tWe X-Received: by 2002:a50:eac1:0:b0:5a3:b45:3970 with SMTP id 4fb4d7f45d1cf-5b7f0bd6f5cmr11328774a12.0.1722982745921; Tue, 06 Aug 2024 15:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722982745; cv=none; d=google.com; s=arc-20160816; b=i5w6Z35O0xryj/xQMbVFhi+qF8GTc5YkCvA3IUvx6GxE7m6stj6g+eNJdjLp+gsPDV G4BPLx9eSmYhnXHPNoVKEaLUCD0gAgsPuygoFnISPMTHbTUqHbK4n1+T2KpbRzr7dAvT XCWQ+AWH4t1HZcaw0cmxiADOOLFYyzGbP7ff+aScK9J0YVAZiUgq27dIPC4hJ1zgQXvA HwO1zTtQmNXolmkwAABNnkImE0owl27V+N9lEIYHMa3Z9JQ6/G47Kc7ZScJSxNT1oYQE KFX49USSh9RWr+vZwbb5QkwuT7imYv995yxQtePxFE6yDnZdiSVMDvSAvDOJCU3IIOdX rPNA== 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=tRSQd1dI+i4/pUjIQW6MMIH1tvgMj3xm93/w3KZ7E1M=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=pVPSmviF95ozC5Vn2UkdeZZopeIDhqN0G0ePH90bx17cZBCKABT2/uJbNbiOESDnv3 wztMlWy21O+GwKUZ0Dw4FNasDRQ7VC04LgN5ZbUB8hj17RcQ8N3LpZIHRWl7diM/M2+Z AtYNWtsuX+0G3cwpbnTCz1An2k/sZ33q5L/c4PkhbBWoo/VTOpCiJ5yFnVvxLcD6O+vp pS1tqejoecGNmw06pLY3fSDWLwP5UrO6chYX3Cfr+0jwxnqucZDIfstC0KxM4UrWRZoJ E4wzkKt/66vHdBdID/JLWomTCvkS7nyIfRKlXRpsfkTGg894idJyXdC+R8cv9EebX1h/ cPCw==; 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=pXWYuMx4; 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-5b83c61b08dsi6150706a12.519.2024.08.06.15.19.05; Tue, 06 Aug 2024 15:19:05 -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=pXWYuMx4; 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 4770568DA9F; Wed, 7 Aug 2024 01:19:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3F3CD68D9D2 for ; Wed, 7 Aug 2024 01:18:55 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7BD6A1BF204 for ; Tue, 6 Aug 2024 22:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1722982734; 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=5gwRuzgZbKUZNhWx5b51gsYHOMv+bXhnoQzEBO2j550=; b=pXWYuMx4pBb1CT3VFY7rMoRqDnk4thf1KMbAvhggO6oJcS4cOepkAGuj+BZlrJQFfp/wbP Cptb8EDskvp0QD23qe0b/A7FrLinO/y5kP5zWzbzeyr6aonbcOmK01sT5KzF5MMKitKBcH wDvSulhhaf4JMs89nMVYEiikHkniA9dvbOCR5vvSfbcMZEUJxL8t0hDb04a23QQyXmg0lo U6z2eLbmTaEH1cb0SAQNv5U/mEL1Ft8//JBuk0vVWzhM5Ip5BlXx9TVw8oJV9oMZ6yAmyP Ifhb9tdvX2Ljrym6ONK6e4ry5V2iZqyzkWbdQ1GHQPl1KYeIaSMxk/OY2OOHCg== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 7 Aug 2024 00:18:48 +0200 Message-ID: <20240806221853.959177-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 1/6] avformat/segafilm: Set keyframe 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: ShWz7GGFEfEL Fixes: use of uninitialized value Fixes: 70871/clusterfuzz-testcase-minimized-ffmpeg_dem_SEGAFILM_fuzzer-5883617752973312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/segafilm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 96a50c0e3b3..e72d872f963 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -234,6 +234,7 @@ static int film_read_header(AVFormatContext *s) else if (film->audio_type != AV_CODEC_ID_NONE) audio_frame_counter += (film->sample_table[i].sample_size / (film->audio_channels * film->audio_bits / 8)); + film->sample_table[i].keyframe = 1; } else { film->sample_table[i].stream = film->video_stream_index; film->sample_table[i].pts = AV_RB32(&scratch[8]) & 0x7FFFFFFF;