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>
Sat, 30 Jan 2016 23:24:28 +0000 (00:24 +0100)
commit0d312030d25b17827520475ba68acf9ee9b4d3f7
tree6e7763774f351b635fc52b32dbe5348844ad3199
parentee5ba0a1ad8b6763a9acc9cf37b1aba6de284e8d
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