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>
Thu, 28 Jan 2016 14:53:54 +0000 (15:53 +0100)
commit00393c56da9786b7e2011b5f712ce7d20cb42195
treed92748ea3ed5900cf5deaf6e7431ce7a03454e57
parentf77b656b6eaf8efbeedb798c4a53ff901c3e810d
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