On ke, 2015-12-09 at 21:52 +0100, Roland Fischer wrote:
> A few discs have an aacs folder with a unit_key_ro.inf file
> consisting only of NULL bytes and only unencrypted content in
> BDMV/STREAM directory.

Interesting ... Is MKB file empty too ?

Any ideas where such discs come from ? I think AACS specification
requires valid files even with unencrypted discs.

Have you tried if any other player (ex. PowerDVD) can play such discs ?

> This case can be detected on their always identical discid value
> In case such a disc is deteced return AACS_SUCCESS to allow
> playback of disc.
> Reason of change: https://github.com/OpenELEC/OpenELEC.tv/pull/4378
> ---
>  src/libaacs/aacs.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/libaacs/aacs.c b/src/libaacs/aacs.c
> index 1bd8ad5..5de09ac 100644
> --- a/src/libaacs/aacs.c
> +++ b/src/libaacs/aacs.c
> @@ -1067,6 +1067,10 @@ int aacs_open_device(AACS *aacs, const char
> *path, const char *configfile_path)
>      error_code = _calc_title_hash(aacs);
>      if (error_code != AACS_SUCCESS) {
>          return error_code;
> +    } else if (!memcmp(aacs->disc_id,
> "\xEC\x6A\xFE\x5D\xF8\xA1\x32\x50\x68\xB9\x53\x13\xF8\x2B\xD7\x2C\x09
> \xD4\xF9\x63", 20)) {
> +        /* in case the unit_key_ro.inf contains only NULL byte
> values it's SHA1 hash is 'ec6afe5df8a1325068b95313f82bd72c09d4f963'
> */

With 65536 NUL bytes I get 1adc95bebe9eea8c112d40cd04ab7a8d75c4f961.

> +        BD_DEBUG(DBG_AACS, "Detected 0-Byte AACS file - no AACS
> processing necessary\n");
> +        return AACS_SUCCESS;
>      }
>  
>      cf = keydbcfg_config_load(configfile_path);

_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to