-
Notifications
You must be signed in to change notification settings - Fork 692
Should skip SEI payload when SEI type mismatch #2457
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
Should skip SEI payload when SEI type mismatch #2457
Conversation
|
Thanks for the fix! Some questions:
|
|
Oh can you also re-target this PR agains the |
Alternatively I'm happy to make the change directly internally and send it for review, if you're happy to get the fix but without merging this PR - let me know :) |
7062099 to
88fb6b3
Compare
done |
Yes, it's OK.
I transcoded it from sample_twos_pcm.mp4 using our own HEVC encoder. Some custom data was added to SEI by our encoder. |
88fb6b3 to
eb35980
Compare
|
I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks! |
This PR tries to fix #2456
The function
parseH265Sei3dRefDisplayInfotries to find SEI of type 179 and extract 3d ref DisplayInfo from it. But when the SEI type does not match 179, it fails to properly skip the unprocessed SEI payload. Instead, it continues searching for the number 179 within the payload content. This may mistakenly treat payloads of other types SEI as the target type (179), leading to incorrect parsing and eventual through an exception.The missing else branch is added to skip payload bytes.