aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aom_film_grain_template.c
diff options
context:
space:
mode:
authorMarth64 <marth64@proxyid.net>2024-06-26 22:05:46 -0500
committerStefano Sabatini <stefasab@gmail.com>2024-07-01 22:54:00 +0200
commit4dc204ea3e3633d2c8bd89ac9796b47e87c25836 (patch)
tree6777228615c18ce1804dd805b78371f3f9859a34 /libavcodec/aom_film_grain_template.c
parent0c1c7688eacd1c8eba1e85757494c681442f2667 (diff)
downloadffmpeg-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/aom_film_grain_template.c')
0 files changed, 0 insertions, 0 deletions