[FFmpeg-cvslog] avformat/dvdvideodec: fix menu PGC number off-by-one in state
Marth64
git at videolan.org
Wed Jan 8 07:46:07 EET 2025
ffmpeg | branch: release/7.1 | Marth64 <marth64 at proxyid.net> | Mon Oct 7 18:04:50 2024 -0500| [aebce8b1b84a4bc7b98f2f7f520aaf6db8dddfd8] | committer: Marth64
avformat/dvdvideodec: fix menu PGC number off-by-one in state
Signed-off-by: Marth64 <marth64 at proxyid.net>
(cherry picked from commit 94346edbbfeff7a54ab04631ef4ba2781460e17c)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aebce8b1b84a4bc7b98f2f7f520aaf6db8dddfd8
---
libavformat/dvdvideodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index 4e33d1aba6..da41a9d329 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -344,7 +344,7 @@ static int dvdvideo_menu_open(AVFormatContext *s, DVDVideoPlaybackState *state)
}
/* make sure the PGC is valid */
- state->pgcn = c->opt_pgc - 1;
+ state->pgcn = c->opt_pgc;
state->pgc = pgci_ut->lu[c->opt_menu_lu - 1].pgcit->pgci_srp[c->opt_pgc - 1].pgc;
if (!state->pgc || !state->pgc->program_map || !state->pgc->cell_playback) {
av_log(s, AV_LOG_ERROR, "Invalid PGC structure for menu [LU %d, PGC %d]\n",
More information about the ffmpeg-cvslog
mailing list