From nicolasporcel06 at gmail.com Tue Feb 6 02:55:41 2018 From: nicolasporcel06 at gmail.com (Nicolas Porcel) Date: Tue, 6 Feb 2018 02:55:41 +0100 Subject: [libdvdnav-devel] =?utf-8?q?=28no_subject=29?= Message-ID: <20180206015541.GA24932@nicolas-desktop> >From 5a899a87d1bd62f6c6169413bd0064d109136e22 Mon Sep 17 00:00:00 2001 From: Nicolas Porcel Date: Tue, 6 Feb 2018 01:49:51 +0100 Subject: [PATCH] Fix dvd burnt with Nero Some DVD written with Nero Burning ROM have faulty IFO files that make them unreadable with libdvdread. The condition removed is checked anyway using the CHECK_VALUE macro. --- src/ifo_read.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ifo_read.c b/src/ifo_read.c index 8bcb355..778b2b5 100644 --- a/src/ifo_read.c +++ b/src/ifo_read.c @@ -1244,8 +1244,6 @@ int ifoRead_VTS_PTT_SRPT(ifo_handle_t *ifofile) { = *(uint16_t*)(((char *)data) + data[i] + 4*j - VTS_PTT_SRPT_SIZE); vts_ptt_srpt->title[i].ptt[j].pgn = *(uint16_t*)(((char *)data) + data[i] + 4*j + 2 - VTS_PTT_SRPT_SIZE); - if(!vts_ptt_srpt->title[i].ptt[j].pgn) - goto fail; } } -- 2.16.1 From nicolasporcel06 at gmail.com Tue Feb 6 02:57:44 2018 From: nicolasporcel06 at gmail.com (Nicolas Porcel) Date: Tue, 6 Feb 2018 02:57:44 +0100 Subject: [libdvdnav-devel] [PATCH] Fix dvd burnt with Nero Message-ID: <20180206015744.GA25141@nicolas-desktop> Some DVD written with Nero Burning ROM have faulty IFO files that make them unreadable with libdvdread. The condition removed is checked anyway using the CHECK_VALUE macro. --- src/ifo_read.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ifo_read.c b/src/ifo_read.c index 8bcb355..778b2b5 100644 --- a/src/ifo_read.c +++ b/src/ifo_read.c @@ -1244,8 +1244,6 @@ int ifoRead_VTS_PTT_SRPT(ifo_handle_t *ifofile) { = *(uint16_t*)(((char *)data) + data[i] + 4*j - VTS_PTT_SRPT_SIZE); vts_ptt_srpt->title[i].ptt[j].pgn = *(uint16_t*)(((char *)data) + data[i] + 4*j + 2 - VTS_PTT_SRPT_SIZE); - if(!vts_ptt_srpt->title[i].ptt[j].pgn) - goto fail; } } -- 2.16.1