Re: libdvdread has trouble with some DVD images

Jeff Bowden <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Continuing my investigation, I commented out the offending assert and 
got to another one:

tccat: ifo_read.c:831: ifoRead_TT_SRPT: Assertion 
`(int)tt_srpt->nr_of_srpts * sizeof(title_info_t) <= info_length' failed.

After adding some fprintf's I found that:
    tt_srpt->nr_of_srpts = 3
    sizeof(title_info_t) = 12
    info_length = 24

If I comment out that assert I get a segfault.  I tried the following 
modification but it still segfaults:

  if ((int)tt_srpt->nr_of_srpts * sizeof(title_info_t) > info_length)
      tt_srpt->nr_of_srpts = info_length / sizeof(title_info_t);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.