master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.46k stars 151 forks source link

Fix panic in parse_aom_vpx_frames_sse41() #715

Closed redzic closed 1 year ago

redzic commented 1 year ago

On some rare inputs (that can happen in real world scenarios), this function panics. This PR fixes that issue. I have also fuzzed this function and the fallback parse_aom_vpx_frames and no other obvious panics or crashes seem to happen in debug mode, at least on the randomized inputs used in fuzzing.

master-of-zen commented 1 year ago

:+1: