avcodec/webp: Always set pix_fmt
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 May 2017 16:37:49 +0000 (18:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 May 2017 20:52:35 +0000 (22:52 +0200)
commit6b5d3fb26fb4be48e4966e4b1d97c2165538d4ef
treec6e3ef0b27a8268e8527ae795bcd13e827a5d992
parent942036e97c8b149ce2f3ec6e7cbc990df8713d0c
avcodec/webp: Always set pix_fmt

Fixes: out of array access
Fixes: 1434/clusterfuzz-testcase-minimized-6314998085189632
Fixes: 1435/clusterfuzz-testcase-minimized-6483783723253760

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp8.c
libavcodec/webp.c