libaacs | branch: master | npzacs <npz...@gmail.com> | Sun Feb 21 21:16:08 2016 +0200| [0e1a3fc4df7cadb980343bb353539a1b16f9d714] | committer: npzacs
Try backup file when reading of MKB_RO.inf fails > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=0e1a3fc4df7cadb980343bb353539a1b16f9d714 --- src/libaacs/aacs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libaacs/aacs.c b/src/libaacs/aacs.c index 890f954..1afbe1d 100644 --- a/src/libaacs/aacs.c +++ b/src/libaacs/aacs.c @@ -473,6 +473,11 @@ static MKB *_mkb_open(AACS *aacs) size = _read_file(aacs, "AACS" DIR_SEP "MKB_RO.inf", &data); if (size < 4) { + /* retry with backup file */ + X_FREE(data); + size = _read_file(aacs, "AACS" DIR_SEP "DUPLICATE" DIR_SEP "MKB_RO.inf", &data); + } + if (size < 4) { X_FREE(data); BD_DEBUG(DBG_AACS | DBG_CRIT, "Error reading MKB file (AACS/MKB_RO.inf)\n"); return NULL; _______________________________________________ libaacs-devel mailing list libaacs-devel@videolan.org https://mailman.videolan.org/listinfo/libaacs-devel