[libdvdcss-devel] Bug concerning RPC-1-patched drives

mathew meta at pobox.com
Sun Feb 12 02:20:38 CET 2012


 <danhaim <at> danhaim.com> writes:
> I think I found a bug in libdvdcss where drives flashed with
> RPC-1-patched firmware are concerned. Many times these drives will not
> report themselves as RPC-1 but would rather not recognize the relevant
> ioctls at all (like actual old RPC-1 drives' behavior). This causes
> ioctl_ReportRPC to fail and _dvdcss_test, in turn, to report a -2 return
> code, which prevents the disc from being authenticated.
[...]
> The relevant code is in function _dvdcss_test in css.c :
> 
> i_ret = ioctl_ReportRPC( dvdcss->i_fd, &i_type, &i_mask, &i_rpc);
> 
> if( i_ret < 0 )
> {
> -        print_error( dvdcss, "css error: could not get RPC status" );
> -        return -2;
> +        print_debug( dvdcss, "css error: could not get RPC status,
> assuming RPC-1 drive" );
> +        i_rpc = 0;
> +        i_type = 0;
> +        i_mask = 0;
> }
> 
> I tested this and was able to play encrypted DVDs with the modified
> libdvdcss library (was completely unable before).

I just had the exact same problem. I was lucky enough to find this mailing list 
message after wasting half an hour or so trying to work out what was wrong.

Please consider fixing this bug as a high priority.


mathew
-- 
http://www.pobox.com/~meta/



More information about the libdvdcss-devel mailing list