[libdvdnav-devel] [PATCH 4/4] Don't abort if PGCN or PCN == 0 when reading VTS_PTT_SRPT

Pierre Lamot pierre at videolabs.io
Tue Jan 9 15:52:17 CET 2018


---
 src/ifo_read.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/ifo_read.c b/src/ifo_read.c
index 8b31d39..802583d 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -1263,13 +1263,7 @@ int ifoRead_VTS_PTT_SRPT(ifo_handle_t *ifofile) {
       CHECK_VALUE(vts_ptt_srpt->title[i].ptt[j].pgcn < 1000); /* ?? */
       CHECK_VALUE(vts_ptt_srpt->title[i].ptt[j].pgn != 0);
       CHECK_VALUE(vts_ptt_srpt->title[i].ptt[j].pgn < 100); /* ?? */
-      if (vts_ptt_srpt->title[i].ptt[j].pgcn == 0 ||
-          vts_ptt_srpt->title[i].ptt[j].pgcn >= 1000 ||
-          vts_ptt_srpt->title[i].ptt[j].pgn == 0 ||
-          vts_ptt_srpt->title[i].ptt[j].pgn >= 100) {
-        return 0;
-      }
-
+      //don't abort here. E-One DVDs contain PTT with pgcn or pgn == 0
     }
   }
 
-- 
2.14.1



More information about the libdvdnav-devel mailing list