Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0ddf69fe by Steve Lhomme at 2025-02-08T20:49:40+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.

- - - - -


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/0ddf69feccd687f0a694aeeefbc31c76074103ec

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/0ddf69feccd687f0a694aeeefbc31c76074103ec
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to