AMF icon indicating copy to clipboard operation
AMF copied to clipboard

[Request]: Low tolerance for corrupted streams, decoding fails

Open Masa-tam opened this issue 10 months ago • 1 comments

data.zip

The decoder does not accept broken streams. Attached is a Picture Timing SEI corrupted with a binary editor and its original. The corrupted one fails to decode. AMF cannot be used at all because it terminates with an error when a broken stream is submitted.

Even if the SEI data is slightly corrupted, it should not affect decoding, so please try to decode as much as possible instead of terminating with an error.

Masa-tam avatar Mar 12 '25 09:03 Masa-tam

OK, I added code to skip corrupted SEIs. But cannot blindly skip parsing errors without testing. Thanks.

MikhailAMD avatar Mar 12 '25 14:03 MikhailAMD