From patchwork Mon Oct 7 23:04:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marth64 X-Patchwork-Id: 52118 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:bc50:0:b0:48e:c0f8:d0de with SMTP id m16csp43176vqy; Mon, 7 Oct 2024 16:05:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWdX+kJgZpXablk7fmfSwJZ3G4zX2aTtcssee95mKEdFjrKqcvpcXcHTX1gt6h5EEClBSpwb3ecxd1UrBboip9V@gmail.com X-Google-Smtp-Source: AGHT+IFT1p+aOWn5vt4M/IJnW/2Ive3VertQxCtnG+pZljkNC3csDZVYK4k+f4BvN4l6c+c9COuf X-Received: by 2002:a05:6402:3513:b0:5c7:2131:5d3 with SMTP id 4fb4d7f45d1cf-5c8d2e16405mr11405716a12.12.1728342355558; Mon, 07 Oct 2024 16:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728342355; cv=none; d=google.com; s=arc-20240605; b=DBfMLcqhUOipj5DIlBe7TwMjigb4hiLyFw1vzdPGs5daDqBDjz02nCHORTthObZB+S daV3u3qa9M++KhYQ9inJt4P8XoooHD1Pudm7VNc3rjE9t40INp9Nr2cEt7ADYOLy6qtT zNtw/qRIuyFMAXsQxvkORnyCSZduIzjkSPpwr3YLUze9SCjYnueUo12TldcSYN3hwhLE fF6769EpBwvMctbnj+85kaQwiBt+ORSC+lVAd8FkMeQPUWu+vLXS/8iOJv5eyRDJHVFa GQxa922CDPUPNwJYFaGEEfP3W1B7MbUNq2sIoqYNUlEH1Tf6Wp0Mz2dETMddwZg06aZ5 V4lA== 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=2wH857sC6kPKSowg/TLwjZuzmbZdLu9YQIK8ynGMQak=; fh=PlWMzmI9LD2qGS7ipLrQl8z0iaQTLQLHzoGuXcBzpCg=; b=lWa4SJij0PmdiimOw/i06StPEvVlyhND4VSB4CkdnJJH2tyO730vuOwss0TZkKWNrL oHVlr71FcBRR7sX+fQ9Uk7z00cBUv8dB2bZmlB8eWWEm5s8Rxe7lw3SbTF8S7wIDDAOj 4fvmchBOHyIuvQt3PzLykMgY9lqCTAgiL20Wdhi8t2i8vaOSG3HepxW/Cy3VukGnW+2u +HzEiHrPey4Htteoo9iIeNNN1hHvYnLGMT+6BHUByNdZwlNQlHRGzwRr+DMBmzTK3nTG 3GgR3EjtsQCYQavpSorpLMxA9kSzWycuQAOzEqyzPafCbKpjn72xgUC431SfAe8f/DQO BaZw==; 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=dy3hNufJ; 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: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5c8e05e5d50si4788407a12.212.2024.10.07.16.05.55; Mon, 07 Oct 2024 16:05:55 -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=dy3hNufJ; 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 AC2F668DDB6; Tue, 8 Oct 2024 02:05:24 +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 A116368DCFF for ; Tue, 8 Oct 2024 02:05:14 +0300 (EEST) Received: by mail-qv1-f97.google.com with SMTP id 6a1803df08f44-6cb4f1137a8so34462636d6.2 for ; Mon, 07 Oct 2024 16:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1728342313; x=1728947113; 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=0L7byPYYnH0+PsfMNuHrNe2aVuXYoavA1NUwsvOvbKQ=; b=dy3hNufJh3SOVMs76JTfcb61DhBDuqmPLXUVeUuPAZcFcQq8FPm2QmirZqdvdLe/hy jXlJ83u0DHYo2TMz/NjbX07Ll/YeTBnpiAYgJmq21BmvOAEPUML2WxVWim8mhBkHFl5L 6nr4Rs1sfD6f9enL/6ZyxVsrfVCwxbyci5grKCZvJdr7qxbsU1fL6kWtA4wi0dpVJbOa 4c7cfzbUHk5K10FAAsOezbMnjp+bqLeCAWRmWsgwmrBydEoaRNyCIh6w4dj8sAEsazZG lIvsnpmjWWel/CKBgaqL0XB+y/9tiu5kbQSOl88CeEpC1LHxA8A9GpLslZ8s8w6jVkBY 3rfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728342313; x=1728947113; 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=0L7byPYYnH0+PsfMNuHrNe2aVuXYoavA1NUwsvOvbKQ=; b=OXvlzXFlTT8Pb0oxXznofg9WKnUeKPBa+eN0Ez7q7zNHfMiRYllM7mK/5dCuOrdm3a rzjZaca/lNUdpKP4fOFFUK6O/aILEPHvwylnJCUYKr5lvlAXITXS5K7Z0sQCJ8itPdHy VgurN3sOaB7Tv86ircm5hUn2MCb15Cq0zp/kJImKkRUNV59Y2RCn8Bm642AVtAekdr6J vaxiwWSpvRs0Qhw85xBH5sFtzx2mrzKMjTjNstarnQcHX4r0ZLoP2yekWlVOxiB9uLC/ QLnKa4G3ZCBowtLLGwFcc9UjH2Rb90WnjLuw+ujzA3gcf5cGJxT2UomJEqxVWvgbyGtA 7X9A== X-Gm-Message-State: AOJu0Yxx7uLE6TiiDw2NcebXzi9YJ9qwHM7u7Jp5/J7vsUKan45TVDSE fUfZH2lvSwfheX1c/vhz5Blc6t5FdlfQl2einfPQZzGI+Zv4eldhMvkQxQRJbAI0IRQieEcRvkI iaihb4Ff3TdXTDdTM1Nzr+8hYrcvsFENrVHn7yEQK X-Received: by 2002:a05:6214:5906:b0:6c5:73b1:700a with SMTP id 6a1803df08f44-6cb9a482949mr217355916d6.46.1728342313389; Mon, 07 Oct 2024 16:05:13 -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.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Oct 2024 16:05:13 -0700 (PDT) X-Relaying-Domain: proxyid.net From: Marth64 To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Oct 2024 18:04:51 -0500 Message-Id: <20241007230505.27623-4-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 03/17] avformat/dvdvideodec: measure duration of the current menu VOBU in state 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: Marth64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: GxWGa8HDUNWv This will be a pre-requisite to calculating chapter markers for menus. Signed-off-by: Marth64 --- libavformat/dvdvideodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index da41a9d329..18c356c132 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -474,6 +474,7 @@ static int dvdvideo_menu_next_ps_block(AVFormatContext *s, DVDVideoPlaybackState } state->vobu_e_ptm = pci.pci_gi.vobu_e_ptm; + state->vobu_duration = pci.pci_gi.vobu_e_ptm - pci.pci_gi.vobu_s_ptm; av_log(s, AV_LOG_DEBUG, "NAV packet: sector=%d " "vobu_s_ptm=%d vobu_e_ptm=%d ts_offset=%" PRId64 "\n",