-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to correctly do AP4_CencSampleInfoTable::Create on particular file #781
Comments
Hi I have some more info. So I now see that the 'data' in this box is indicating that there's a 0 count for sample info. From this document: https://www.uvcentral.com/files/CFFMediaFormat-2_1.pdf on page 39
I have a workaround here but not really sure if it's proper. I just copy/pasted code from another function that gets the sample info count from the trun box. With this number populated the table is successfully created. I also had to alter Grateful for your feedback. |
This file is also not compliant (no |
Thanks for looking at this @barbibulle |
Hi again
The attached zip contains the init and a segment from an audio track of a CBCS encrypted stream:
audio.zip
This decrypts successfully in browser/official app, but bento4/Kodi/inputstream.adaptive is not currently handling this properly.
When trying to create a sampleinfotable it's missing data because there's no SAIZ/SAIO boxes, and the SENC box is effectively empty:
This here actually creates the sampleinfotable:
Bento4/Source/C++/Core/Ap4CommonEncryption.cpp
Lines 2828 to 2838 in 5b7cc25
But m_sampleCount is 0 (and probably more data missing too), no IVs are stored and ultimately calling DecryptSampleData fails here:
Bento4/Source/C++/Core/Ap4CommonEncryption.cpp
Line 2127 in 5b7cc25
I'm hoping you can help with a solution or at least point me in the right direction. I've been at it for a couple of hours and tried a few things but now getting to the point of needing some help.
Thanks heaps.
edit: btw this is from the same stream/program with incorrect boxes in the video stream from issue #742
The text was updated successfully, but these errors were encountered: