avcodec/wmaenc: Check ff_wma_init() for failure
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jan 2016 01:38:05 +0000 (02:38 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 Feb 2016 01:12:21 +0000 (02:12 +0100)
commit9e44ea7c0f3984252dc9f8484e81d9d01168a5a8
tree046291288292b65172b4ac4c2213c5eb4421a3b2
parent0732e7b0eab4bbb7af3861fb1630aff3bcdd6082
avcodec/wmaenc: Check ff_wma_init() for failure

Fixes null pointer dereference
Fixes: c4faf8280ba366bf00a79d425f2910a8/signal_sigsegv_1f96477_5177_1448ba7e4125faceb966f44ceb69abfa.qcp
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 19e456d48c90a1e3ceeb9e6241383384cc73dfdf)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmaenc.c