avcodec/vp3: Clear context on reinitialization failure
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 23:23:54 +0000 (00:23 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 23:25:08 +0000 (00:25 +0100)
commit6105b7219a90438deae71b0dc5a034c71ee30fc0
tree806f8aa904ee55927e6bed7b403d4746e73f1bbf
parentd85aa76115214183e7e3b7d65e950da61474959a
avcodec/vp3: Clear context on reinitialization failure

Fixes null pointer dereference
Fixes: 1536b9b096a8f95b742bae9d3d761cc6/signal_sigsegv_294aaed_2039_8d1797aeb823ea43858d0fa45c9eb899.ogv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp3.c