avcodec/bmp: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 May 2017 15:53:11 +0000 (17:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 May 2017 15:55:22 +0000 (17:55 +0200)
commit63b8d4146d78595638417e431ea390aaf01f560f
treee47d4da139c6dbcb45148e8a4154a3adbb016422
parent28b24670741e1de25bfc7b5ea7c1d6dbae1aef6f
avcodec/bmp: Use ff_set_dimensions()

Fixes out of memory

Fixes: 1282/clusterfuzz-testcase-minimized-5400131681648640

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bmp.c