[FFmpeg-cvslog] avformat/dvdvideodec: measure duration of the current menu VOBU in state

Marth64 git at videolan.org
Wed Jan 8 07:46:09 EET 2025


ffmpeg | branch: release/7.1 | Marth64 <marth64 at proxyid.net> | Mon Oct  7 18:04:51 2024 -0500| [5d37c7cf081fb766e52d894ac7d9c6964a3c2347] | committer: Marth64

avformat/dvdvideodec: measure duration of the current menu VOBU in state

This will be a pre-requisite to calculating chapter markers
for menus.

Signed-off-by: Marth64 <marth64 at proxyid.net>
(cherry picked from commit 39c662f54125f55b6f0014ac61d92cb2618f5db0)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d37c7cf081fb766e52d894ac7d9c6964a3c2347
---

 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",



More information about the ffmpeg-cvslog mailing list