diff -Nru oms/src/plugin/input/input_udf.c omsfly/src/plugin/input/input_udf.c --- oms/src/plugin/input/input_udf.c Mon Jun 18 19:26:29 2001 +++ omsfly/src/plugin/input/input_udf.c Mon Jun 18 19:36:14 2001 @@ -64,6 +64,7 @@ extern int CSSAuthTitle (int fd, char *key_title, int lba); extern int CSSGetASF (int fd); extern int CSSDecryptTitleKey (char *key_title, char *key_disc); +extern int CSSDecryptTitleKey2 ( int i_fd, char * titlekey, off_t i_title_pos); extern void CSSDescramble (u_char *sec, u_char *key); #endif @@ -131,7 +132,7 @@ if (CSSAuthTitle (priv.fd, priv.key_title, priv.pos) < 0) LOG (LOG_ERROR, "Authenticate title (%s)", strerror (errno)); - if (CSSDecryptTitleKey (priv.key_title, priv.key_disc) < 0) + if (CSSDecryptTitleKey2 (priv.fd, priv.key_title, priv.pos * (off_t) DVD_VIDEO_LB_LEN ) < 0) LOG (LOG_ERROR, "Decrypting title (%s)", strerror (errno)); return 0;