diff options
author | Marth64 <marth64@proxyid.net> | 2024-06-26 22:05:46 -0500 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2024-07-01 22:54:00 +0200 |
commit | 4dc204ea3e3633d2c8bd89ac9796b47e87c25836 (patch) | |
tree | 6777228615c18ce1804dd805b78371f3f9859a34 /libavcodec/assenc.c | |
parent | 0c1c7688eacd1c8eba1e85757494c681442f2667 (diff) | |
download | ffmpeg-4dc204ea3e3633d2c8bd89ac9796b47e87c25836.tar.gz |
avformat/dvdvideodec: Fix duration logic with 1 chapter and validate chapter range
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).
Signed-off-by: Marth64 <marth64@proxyid.net>
Diffstat (limited to 'libavcodec/assenc.c')
0 files changed, 0 insertions, 0 deletions