aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/spdifenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-09-10 21:10:16 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-12 01:52:14 +0200
commit380659604f2692b625928a3a76a1c046f473c9f6 (patch)
tree9911b167d61036078cffe045e878a287bfc38fd1 /libavformat/spdifenc.c
parentc9a1cd08eafe57d1fecaaf605929b3e68165a6e4 (diff)
downloadffmpeg-380659604f2692b625928a3a76a1c046f473c9f6.tar.gz
avcodec/shorten: Move buffer allocation and offset init to end of read_header()
They are time consuming operations, performing them after the other checks improves the speed with damaged input dramatically. Fixes: Timeout Fixes: 2928/clusterfuzz-testcase-4992812120539136 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>
Diffstat (limited to 'libavformat/spdifenc.c')
0 files changed, 0 insertions, 0 deletions