diff --git a/contrib/src/dvdnav/0002-play-avoid-assert-and-exit-and-bogus-Cell-link.patch b/contrib/src/dvdnav/0002-play-avoid-assert-and-exit-and-bogus-Cell-link.patch index eaa55258bd79663a3158e47a6abe438aa4264be1..044bd314d38ffc05e087990c2c3ff3861b902ce4 100644 --- a/contrib/src/dvdnav/0002-play-avoid-assert-and-exit-and-bogus-Cell-link.patch +++ b/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;