avcodec/shorten: Sanity check maxnlpc
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Jun 2017 00:16:54 +0000 (02:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Jun 2017 00:05:09 +0000 (02:05 +0200)
commit79393f4fb140fa026a72373fd62c847cdc0f3fe7
tree8a7a9e0db7b69783f6563d544d558c2d9589d0d6
parenta5feb7e9bd4742f3790e7cff691164899bc0e5c9
avcodec/shorten: Sanity check maxnlpc

Fixes OOM
Fixes: 2131/clusterfuzz-testcase-minimized-4718045157130240

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e77ddd31a8e14bcf5eccd6008d866ae90b4b0d4c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c