avcodec/alsdec: Avoid dereferencing context pointer in inner interleave loop
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Sep 2019 18:31:50 +0000 (20:31 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Sep 2019 19:02:34 +0000 (21:02 +0200)
commit581a895c5c8b464a7fc7ebbaa6d9f565c10bae62
tree6b1a61d982a96be451a6b7997987e75161156fca
parentb2785cd3ac05388b769bc68c083aa4770c632c3e
avcodec/alsdec: Avoid dereferencing context pointer in inner interleave loop

This makes the decoder faster

Improves/Fixes: Timeout (22sec -> 20sec)
Testcase: 17619/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5078510820917248

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c