Re: libdvdread has trouble with some DVD images
Jeff Bowden <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
OK, I made one more attempt and met with success! After commenting out
the assert at ifo_read.c:324 and adding a small fixup after the value of
info_length is computed at ifo_read.c:788 in ifoRead_TT_SRPT, I can
successfully extract the mpeg-2:
info_length = tt_srpt->last_byte + 1 - TT_SRPT_SIZE;
if ((int)tt_srpt->nr_of_srpts * sizeof(title_info_t) > info_length)
tt_srpt->nr_of_srpts = info_length / sizeof(title_info_t);
When I tried this fix before it didn't work because it was in the wrong
part of the function.