aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dvdvideodec.c
diff options
context:
space:
mode:
authorMarth64 <marth64@proxyid.net>2024-10-07 18:04:51 -0500
committerMarth64 <marth64@proxyid.net>2024-11-16 14:40:51 -0600
commit39c662f54125f55b6f0014ac61d92cb2618f5db0 (patch)
treee82be3b90c7b15cde898b92fa80a71ebc1f2d42e /libavformat/dvdvideodec.c
parent94346edbbfeff7a54ab04631ef4ba2781460e17c (diff)
downloadffmpeg-39c662f54125f55b6f0014ac61d92cb2618f5db0.tar.gz
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@proxyid.net>
Diffstat (limited to 'libavformat/dvdvideodec.c')
-rw-r--r--libavformat/dvdvideodec.c1
1 files changed, 1 insertions, 0 deletions
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",