[MPlayer-dev-eng] [PATCH] Fix for DVD playback in directory mode

Arpi arpi at thot.banki.hu
Thu Jan 9 20:13:26 CET 2003


Hi,

> I discovered this bug, while testing DVD playback on Mac OS X. Mac OS X
> automatically mounts inserted DVD, so libmpdvdkit2 is used in directory
> mode using DVD mount point. In this mode only the first VOB file is
> decrypted. When mplayer starts reading data from the second VOB file it
> complains that 'Encrypted VOB file (not compiled with libcss support)!'. I
> think that problem is in file libmpdvdkit2/dvd_reader.c. Function
> DVDOpenVOBPath only decrypts first VOB file and since each VOB file has
> separate structure for title key, all other title keys remains empty. My
> fix is very conservative and simply tries to find title key for every VOB
> file. I found out that the title keys are the same for all VOB files, but
> I am not expert on DVD structure and encryption, so I am not sure if this
> is valid for all DVD disks. If this is true than the fix can be improved
> so that it decrypts title key for the first VOB file and this key is
> simply used in other VOB files. Conservative patch for this problem is
> attached. 

VOBs of the same title set should share the same decryption key, so it
would be better to fix code to use the key of VTS_<titleset>_1.VOB for
all VTS_<titleset>_*.VOB files.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu


More information about the MPlayer-dev-eng mailing list