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>
Sun, 6 Dec 2015 01:51:27 +0000 (02:51 +0100)
commitd32c9723a626701a5a508db7ceba9e8b8a774921
tree3edf1648af061671f24cfd85765cc9abaa7cf640
parent1cbc2cb5084e732d89a56792133576149040f693
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>
(cherry picked from commit 6105b7219a90438deae71b0dc5a034c71ee30fc0)

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