avcodec/pthread_frame: check avctx on deallocation
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 19:19:04 +0000 (21:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 20:09:50 +0000 (22:09 +0200)
commit5d346feafa817c4fbc30f7ed0b93b2dad6cef15b
treebe8edefb579830a967340c61e1041e2a689116c4
parent84e847c7c80cc71d24f0e4ceb99331389d960b04
avcodec/pthread_frame: check avctx on deallocation

Fixes null pointer dereferences
Fixes: af1a5a33e67e479f439239097bd0d4fd_signal_sigsegv_7ffff713351a_152_Dolby_Rain_Logo.pmp with memlimit of 8388608

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