There is no reason to accept timestamp values beyond what dvdnav reported as the duration of the title.
Signed-off-by: Marth64 <mart...@proxyid.net> --- libavformat/dvdvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index 06f842cc1c..b3ad2d63aa 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -1743,7 +1743,7 @@ static int dvdvideo_read_seek(AVFormatContext *s, int stream_index, int64_t time if ((flags & AVSEEK_FLAG_BYTE)) return AVERROR(ENOSYS); - if (timestamp < 0) + if (timestamp < 0 || timestamp > s->duration) return AVERROR(EINVAL); if (!c->seek_warned) { -- 2.39.5 (Apple Git-154) _______________________________________________ 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".