[libdvdcss-devel] new copy protection crashes libdvdread

Raphael Wegmann raphael at psi.co.at
Sun Jul 15 19:46:27 CEST 2007


Raphael Wegmann schrieb:
> Here are the values who cause the crash in ifoRead_VTS():
> vtsi_mat->vtsi_last_sector = 16777215
> vtsi_mat->vts_last_sector = 3478820
> vtsi_mat->vtsm_vobs = 45
> vtsi_mat->vtsi_last_sector = 16777215
> vtsi_mat->vtstt_vobs = 13318

Well, please forget about those values above.

I've now put a call to ifoPrint_VTSI_MAT()
in the ifoRead_VTS() after the byte-swaps.

Here is what it looks like now:

_______________________________________________________________________

*** libdvdread: CHECK_VALUE failed in ifo_read.c:435 ***
*** for vtsi_mat->vtsi_last_sector*2 <= vtsi_mat->vts_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:439 ***
*** for vtsi_mat->vtsm_vobs == 0 ||
   (vtsi_mat->vtsm_vobs > vtsi_mat->vtsi_last_sector &&
    vtsi_mat->vtsm_vobs < vtsi_mat->vts_last_sector) ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:442 ***
*** for vtsi_mat->vtstt_vobs == 0 ||
   (vtsi_mat->vtstt_vobs > vtsi_mat->vtsi_last_sector &&
    vtsi_mat->vtstt_vobs < vtsi_mat->vts_last_sector) ***

libdvdnav: ifoRead_VOBU_ADMAP vtsi failed
[00000293] dvdnav demuxer error: cannot set title (can't decrypt DVD?)
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdcss debug: opening target `/dev/hdb'
libdvdcss debug: using libc for access
libdvdcss debug: disc is scrambled
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key ce:03:3e:4c:1a
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 00:03:f5:ea:2a
libdvdcss debug: using CSS key cache dir:
/home/raphael/.dvdcss/DVDVOLUME-0000000000000000-0003f5ea2a/
VTS Identifier: DVDVIDEO-VTS
Last Sector of VTS: 00351524
Last Sector of VTSI: 00ffffff
Specification version number: 1.0
VTS Category: 00000000
End byte of VTSI_MAT: 000007ff
Start sector of VTSM_VOBS:  0000002d
Start sector of VTSTT_VOBS: 00003406
Start sector of VTS_PTT_SRPT: 00000001
Start sector of VTS_PGCIT:    00000002
Start sector of VTSM_PGCI_UT: 00000003
Start sector of VTS_TMAPT:    00000007
Start sector of VTSM_C_ADT:      00000005
Start sector of VTSM_VOBU_ADMAP: 0000000c
Start sector of VTS_C_ADT:       00000006
Start sector of VTS_VOBU_ADMAP:  0000000e
Video attributes of VTSM_VOBS: mpeg2 pal 16:9 only letterboxed U0
Variable Bit Rate 720x576 video
VTSM Number of Audio attributes: 1
        stream 1 status: ac3 48kHz 6Ch Not specified 0
VTSM Number of Sub-picture attributes: 1
        stream  1 status: -- Unspecified --
Video attributes of VTS_VOBS: mpeg2 pal 16:9 only letterboxed U0
Variable Bit Rate 720x576 video
VTS Number of Audio attributes: 3
        stream 0 status: ac3 48kHz 6Ch Not specified 0
        stream 1 status: dts 48kHz 5Ch Not specified 0
        stream 2 status: ac3 en ( ) 48kHz 2Ch Director's comments 1 0
VTS Number of Subpicture attributes: 1
        stream  0 status: Coding Mode RLE de 0 0 0 Not specified

*** libdvdread: CHECK_VALUE failed in ifo_read.c:544 ***
*** for vtsi_mat->vtsi_last_sector*2 <= vtsi_mat->vts_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:548 ***
*** for vtsi_mat->vtsm_vobs == 0 ||
  (vtsi_mat->vtsm_vobs > vtsi_mat->vtsi_last_sector &&
   vtsi_mat->vtsm_vobs < vtsi_mat->vts_last_sector) ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:551 ***
*** for vtsi_mat->vtstt_vobs == 0 ||
  (vtsi_mat->vtstt_vobs > vtsi_mat->vtsi_last_sector &&
   vtsi_mat->vtstt_vobs < vtsi_mat->vts_last_sector) ***

libdvdread: Invalid title IFO (VTS_01_0.IFO).
libdvdread: Can't open file VTS_01_0.IFO.
VTS Identifier: DVDVIDEO-VTS
Last Sector of VTS: 00351524
Last Sector of VTSI: 00000000
Specification version number: 1.0
VTS Category: 00000000
End byte of VTSI_MAT: 000007ff
Start sector of VTSM_VOBS:  0000002d
Start sector of VTSTT_VOBS: 00003406
Start sector of VTS_PTT_SRPT: 00000001
Start sector of VTS_PGCIT:    00000002
Start sector of VTSM_PGCI_UT: 00000003
Start sector of VTS_TMAPT:    00000007
Start sector of VTSM_C_ADT:      00000005
Start sector of VTSM_VOBU_ADMAP: 0000000c
Start sector of VTS_C_ADT:       00000006
Start sector of VTS_VOBU_ADMAP:  0000000e
Video attributes of VTSM_VOBS: mpeg2 pal 16:9 only letterboxed U0
Variable Bit Rate 720x576 video
VTSM Number of Audio attributes: 1
        stream 1 status: ac3 48kHz 6Ch Not specified 0
VTSM Number of Sub-picture attributes: 1
        stream  1 status: -- Unspecified --
Video attributes of VTS_VOBS: mpeg2 pal 16:9 only letterboxed U0
Variable Bit Rate 720x576 video
VTS Number of Audio attributes: 3
        stream 0 status: ac3 48kHz 6Ch Not specified 0
        stream 1 status: dts 48kHz 5Ch Not specified 0
        stream 2 status: ac3 en ( ) 48kHz 2Ch Director's comments 1 0
VTS Number of Subpicture attributes: 1
        stream  0 status: Coding Mode RLE de 0 0 0 Not specified

*** libdvdread: CHECK_VALUE failed in ifo_read.c:552 ***
*** for vtsi_mat->vts_ptt_srpt <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:553 ***
*** for vtsi_mat->vts_pgcit <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:554 ***
*** for vtsi_mat->vtsm_pgci_ut <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:555 ***
*** for vtsi_mat->vts_tmapt <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:556 ***
*** for vtsi_mat->vtsm_c_adt <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:557 ***
*** for vtsi_mat->vtsm_vobu_admap <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:558 ***
*** for vtsi_mat->vts_c_adt <= vtsi_mat->vtsi_last_sector ***


*** libdvdread: CHECK_VALUE failed in ifo_read.c:559 ***
*** for vtsi_mat->vts_vobu_admap <= vtsi_mat->vtsi_last_sector ***

libdvdread: Invalid title IFO (VTS_01_0.BUP).
libdvdread: Can't open file VTS_01_0.BUP.

_______________________________________________________________________


Since I don't know anything about VTSI, VTSM, etc. I can only guess
what's wrong. But after comparing with "working" DVDs, it seems
to me, that at least the values in vtsi_mat->vtsi_last_sector
(00ffffff and 00000000) are wrong.
Is that because libdvdcss returns the wrong data to libdvdread?
Is there a way to find that out?

-- 
Raphael

_______________________________________________
libdvdcss-devel mailing list
libdvdcss-devel at videolan.org
http://mailman.videolan.org/listinfo/libdvdcss-devel


More information about the libdvdcss-devel mailing list