[MPlayer-dev-eng] [PATCH] Fix for DVD playback in directory mode
D Richard Felker III
dalias at aerifal.cx
Sun Dec 22 18:51:36 CET 2002
On Sun, Dec 22, 2002 at 05:52:49PM +0100, Tomas Hurka wrote:
> Hi All,
> 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.
I don't know if this is the correct fix, but the same problem also
seems to affect win32. BTW, we should remove or fix the "Encrypted VOB
file (not compiled with libcss support)!" error message, since libcss
is deprecated this message usually means that something else is
wrong (e.g. mp3 file is misdetected as mpeg video)...
Rich
More information about the MPlayer-dev-eng
mailing list