diff options
author | Marth64 <marth64@proxyid.net> | 2024-10-07 18:04:50 -0500 |
---|---|---|
committer | Marth64 <marth64@proxyid.net> | 2024-11-16 14:40:51 -0600 |
commit | 94346edbbfeff7a54ab04631ef4ba2781460e17c (patch) | |
tree | 65c59ba883fb2b278a34a2d5c30eea7ac3cdfb0b /libavformat/dvdvideodec.c | |
parent | 3ad96243d756b2b63431410112956e36e4044e4a (diff) | |
download | ffmpeg-94346edbbfeff7a54ab04631ef4ba2781460e17c.tar.gz |
avformat/dvdvideodec: fix menu PGC number off-by-one in state
Signed-off-by: Marth64 <marth64@proxyid.net>
Diffstat (limited to 'libavformat/dvdvideodec.c')
-rw-r--r-- | libavformat/dvdvideodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |