Skip to content
Snippets Groups Projects
Commit 0ddf69fe authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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.
parent 3f68114d
No related branches found
No related tags found
1 merge request!6806contrib: dvdnav: fix bogus test in patch
Pipeline #564263 canceled with stage
in 49 minutes and 19 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment