You might remember me back from 2012 when I asked you to support bluray media initially ;)
I'm currently testing out BD-R DL media for use - when running a qpxtool Error Correction test, the graph is only sized for single layer BD-R media. Looking into the problem, qscan is reporting the media as having a single layer:
Other than the fact this is the same as the code for DVD layer detection, I have no idea if its right or not. Did you test with any BD-R DL media when you wrote the code?
For others interested, qpxtool can still scan the disc but the graph (and output in subsequent reports) gets truncated. I'm going to hack detection of the two layers into the graphing code - if anyones interested, say and I'll attach/link to the patch.