[MPlayer-dev-eng] dvdauth.c file patch
    me andi 
    wortelsapje at hotmail.com
       
    Sat Sep 21 04:11:17 CEST 2002
    
    
  
Hi!
i noticed that when playing an encrypted vob (i.e from hard disk), without 
authenticating the DVD drive (dvdauth.c) one runs into trouble.
In order to descramble the vob data, a suitable title key is required, which 
can be set by the -dvdkey option. I tried this:
mplayer -dvdkey <SUITABLE_KEY> <SOME_VOB_FILE_ON_HARDDISK>
which resulted in a segmentation fault. The problem is that the csslib which 
is used for descrambling, is only loaded when the option -dvdauth has been 
given. When the -dvdauth option is ommited, several function pointers such 
as dvdauth.c:dl_CSSDescramble are left uninitialized. In order to initialize 
the pointers properly i created a function dvdauth.c:openCsslib() which 
contains the libary load code from dvdauth.c:dvd_auth(). openCsslib() is now 
called from both dvd_auth() AND dvd_import_key(). I've attached the new 
dvdauth file.
p.s: I don't know if loading the library twice as a result of using
     -dvdauth AND -dvdkey is a problem. Also i'm not sure if my quick
     patch is OK but it worked for me.
greetz S.Post
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dvdauth.c
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020921/ebdd0a3c/attachment.txt>
    
    
More information about the MPlayer-dev-eng
mailing list