Message ID | 20241007230505.27623-18-marth64@proxyid.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:bc50:0:b0:48e:c0f8:d0de with SMTP id m16csp43363vqy; Mon, 7 Oct 2024 16:06:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWsKwRrSqE0nPL99stsgf7wJKZxCSmv6GH7kEWotnHmY9Vpw3BFgKIwdE2xwmKDhvh63yNK10ZtCN1zklRH+tdL@gmail.com X-Google-Smtp-Source: AGHT+IFHWAy1OqQq+Csj9wASjqhiNG1myqAcl7VMMJ28FHH/qLLPkkEp32/ZYAKS7bKfx8ewMjgN X-Received: by 2002:a17:907:1c1a:b0:a99:68a2:1efd with SMTP id a640c23a62f3a-a9968a2271dmr93092166b.56.1728342384253; Mon, 07 Oct 2024 16:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728342384; cv=none; d=google.com; s=arc-20240605; b=avIWszhVOyev2Y/siYycB5LEW+8yMtZXP6xemi2BBM60Vj3noD9pJrEwW8eMgup/Cn 5f2RWEIW2VHPd06UapS1pNDXu81JKFHD2DduKuBvTtbGvVLPnB+ZVtt8En4xB9WZc1gn CZ5UwFvJtNETPzdZWEjb5aKd8woArCT5tApBDHMOgW8WWTWBRVTOycMSU8IwLLWGO8Ki u2i1sk8aS51mC5UvfMHIrswoi1t/b2MqIsYT1teTiaMoahz9XLNwfncFs1OKfNwEESRm 61ytz2p5AvXB+3qnJBjGpuN+nMr89Is/1BYUDmjirQ25oZ6ug34TDAXu61yiFs/0hM72 8yMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=tpbo100qe9v4MjKQQJWIuz8b3gbiOJlRa8T2KX64lwc=; fh=PlWMzmI9LD2qGS7ipLrQl8z0iaQTLQLHzoGuXcBzpCg=; b=IKyhxW/C/kUOpN3vHmWrBZHzlbVLCVP8gM7FxTKV0s/yZeBwSEyRHK4Mn6BF9y7Srb gnQHpTZ7lpNIr/pnA50SwSQU8P/VV+0H8poVi2tWXZ0DrVmla/XRCtDl7+3zS9h0BLWN ledCrUGqGTMBKC4af9CHDKP0tSwiZrgYbGHS0JP5vbd/oKupQnmI0Cfz5cNGvVUM3/yg +UqQkgESNLxDTHt9McBunm7g1QA3PfLnv8DZFb7/RKVLXdnHIFdE7cxlaHaSkxAc/MiK LBI/BiziCtZqkqk3P6wEOJHh6HD98IsX970DoF5oJ+0zuiD3QFqu6Uaa5eqn76LmYVtU PuwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@proxyid.net header.s=google header.b=FFQCqenb; 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; dara=fail header.i=@gmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a994de419fasi309471666b.268.2024.10.07.16.06.23; Mon, 07 Oct 2024 16:06:24 -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=@proxyid.net header.s=google header.b=FFQCqenb; 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; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 772DC68DDD8; Tue, 8 Oct 2024 02:05:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f97.google.com (mail-qv1-f97.google.com [209.85.219.97]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9012A68DD4F for <ffmpeg-devel@ffmpeg.org>; Tue, 8 Oct 2024 02:05:20 +0300 (EEST) Received: by mail-qv1-f97.google.com with SMTP id 6a1803df08f44-6cb259e2eafso41998886d6.0 for <ffmpeg-devel@ffmpeg.org>; Mon, 07 Oct 2024 16:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1728342319; x=1728947119; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NqRa/AKsANxX0okE9CoBlW7VONsfiDoqiKVHJUsh8c8=; b=FFQCqenb1XsVnUKH1c2CmK7OopEZYeqjo9UUOV5Dp5o5inLBZ7NjlpTycdEg4wKXDg d8FBPCM1jIy593npXq62YttgVdNte3KjlyopB2Fd/siLYM0vDsx/VWEaRnZXSpK6C0W5 haYLdjJy0K2Xu7vTIQo05aQxoSySOC36yP0MGTJerxXjBMkVSNX6kBTHwygQS0Tr92Tq j9Y26NTMq8KE3KJrQwnJpdgtUzRl28rXO4rmzPf3TIuJrrNna60EW3JmcoQfFnUq/Z2j d+sohJ7+fniv2ssQXSWZjMxv8sboxJAM6pSIbmjgPGOst2TDrV9WgukXJvCBO9MAkldz I86Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728342319; x=1728947119; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NqRa/AKsANxX0okE9CoBlW7VONsfiDoqiKVHJUsh8c8=; b=JMX4JN2GcSQ5zx9HdmdkbRsWTC1cylqjInJ+SQ5gL8qm1Am4N9gufvdVov+za0XyKD LV9MVvgIYzBcjxzmIcQOh9Gnr4mNgtmQPyok17dWR9rAo37AyXCtFXMFQlx2Nh8mSu/n z40esWZC+XfKdIMYZBPlHjKaPiWX+d6PYq1P9dxYM5hAq3lUiBJG4FAULYMg3InXqWnY AF6BoLx7mzZu8Mkavgz6ZPh7rM3pVro9KLf/MciIkkjXBWlZLz97+rwGyMxrqfYw2feH BZJwMu5fCd/ZAFZAifIoL/W/9A5aOCSnFjhCmZkuavL9/Fx5Dfwkvs5pewKg+DhSihNH nH3A== X-Gm-Message-State: AOJu0YzlUr823yun5/Uupb6ILO82qefhRLuNJX1/HlmSjswTuYWVC9rq SyYoLqUt1gs04q/S4iQnvfHcVoWvihWARVJfMSfRYd26JOUu/C71Qf+SsdCQkK0qFIkElDoTYtX HSYto39ysvZf7YPM60qJYGkG4EZvbklbGRc6Io64P X-Received: by 2002:a05:6214:5c8:b0:6c3:6799:dde3 with SMTP id 6a1803df08f44-6cbba98330dmr21751666d6.23.1728342319269; Mon, 07 Oct 2024 16:05:19 -0700 (PDT) Received: from localhost.localdomain (c-69-245-177-215.hsd1.il.comcast.net. [69.245.177.215]) by smtp-relay.gmail.com with ESMTPS id 6a1803df08f44-6cba475c5e9sm2106236d6.65.2024.10.07.16.05.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Oct 2024 16:05:19 -0700 (PDT) X-Relaying-Domain: proxyid.net From: Marth64 <marth64@proxyid.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Oct 2024 18:05:05 -0500 Message-Id: <20241007230505.27623-18-marth64@proxyid.net> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241007230505.27623-1-marth64@proxyid.net> References: <20241007230505.27623-1-marth64@proxyid.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 17/17] avformat/dvdvideodec: don't allow seeking beyond dvdnav reported duration X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marth64 <marth64@proxyid.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: YdXjYv+wuoXi |
Series |
avformat/dvdvideodec: bugfixes and menu chapter markers
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | fail | Make failed |
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index 06f842cc1c..b3ad2d63aa 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -1743,7 +1743,7 @@ static int dvdvideo_read_seek(AVFormatContext *s, int stream_index, int64_t time if ((flags & AVSEEK_FLAG_BYTE)) return AVERROR(ENOSYS); - if (timestamp < 0) + if (timestamp < 0 || timestamp > s->duration) return AVERROR(EINVAL); if (!c->seek_warned) {
There is no reason to accept timestamp values beyond what dvdnav reported as the duration of the title. Signed-off-by: Marth64 <marth64@proxyid.net> --- libavformat/dvdvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)