On date Wednesday 2024-06-26 22:05:46 -0500, Marth64 wrote: > Chapters and duration are calculated together in dvdvideo demuxer. > Previous chapter calculation logic treated extraction of 1 chapter > using chapter_start and chapter_end switches incorrectly, returning > the duration of the entire title instead of just the segment. >
> Fix the logic so that it calculates and returns the duration of the > chapter segment instead. Additionally, validate that chapter_end > exceeds chapter_start (except in the special case of 0). What is the meaning of the 0 special case? > > Signed-off-by: Marth64 <mart...@proxyid.net> > --- > libavformat/dvdvideodec.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) [...] Looks good to me. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".