[vlc-commits] [Git][videolan/vlc][3.0.x] contrib: dvdnav: fix bogus test in patch
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Feb 13 07:24:18 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
33a49638 by Steve Lhomme at 2025-02-13T06:37:15+00:00
contrib: dvdnav: fix bogus test in patch
Only the cellN values above nr_of_cells + 1 should be rejected,
just as with pgN and nr_of_programs + 1 in the other patch.
(cherry picked from commit 0ddf69feccd687f0a694aeeefbc31c76074103ec)
- - - - -
1 changed file:
- contrib/src/dvdnav/0002-play-avoid-assert-and-exit-and-bogus-Cell-link.patch
Changes:
=====================================
contrib/src/dvdnav/0002-play-avoid-assert-and-exit-and-bogus-Cell-link.patch
=====================================
@@ -17,7 +17,7 @@ index e5d0e72..a9d99fa 100644
(vm->state).cellN, (vm->state).pgc->nr_of_cells );
#endif
- assert((vm->state).cellN == (vm->state).pgc->nr_of_cells + 1);
-+ if((vm->state).cellN == (vm->state).pgc->nr_of_cells + 1) {
++ if((vm->state).cellN > (vm->state).pgc->nr_of_cells + 1) {
+ /* bogus link, ignore it */
+ link_t link_values = { LinkNoLink, 0, 0, 0 };
+ return link_values;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/33a49638866b7aca6d767da3751b940849c9512c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/33a49638866b7aca6d767da3751b940849c9512c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list