Mercurial > libdvdnav.hg
comparison searching.c @ 427:c53e528905ec src
Let dvdnav_describe_title_chapters() skip PGCs with a cell number of zero.
Patch by Fabian Keil $fk%fabiankeil^de&
author | rathann |
---|---|
date | Thu, 03 Oct 2013 22:30:48 +0000 |
parents | 79921c6bb4e8 |
children | 43c9bfd418d1 |
comparison
equal
deleted
inserted
replaced
426:79921c6bb4e8 | 427:c53e528905ec |
---|---|
628 if(ptt[i].pgn > pgc->nr_of_programs) { | 628 if(ptt[i].pgn > pgc->nr_of_programs) { |
629 printerr("WRONG part number."); | 629 printerr("WRONG part number."); |
630 goto fail; | 630 goto fail; |
631 } | 631 } |
632 | 632 |
633 if (pgc->nr_of_cells == 0) { | |
634 printerr("Number of cells cannot be 0"); | |
635 continue; | |
636 } | |
633 if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) { | 637 if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) { |
634 printerr("Cell new row cannot be 0"); | 638 printerr("Cell new row cannot be 0"); |
635 continue; | 639 continue; |
636 } | 640 } |
637 | 641 |