avformat/thp: Check av_get_packet() for failure not only for partial output
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Feb 2015 02:45:21 +0000 (03:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Feb 2015 03:14:42 +0000 (04:14 +0100)
commitf2579dbb4b31e6ae731e7f5555680528ef3020ab
treeab9ce3a6bd4040a32759fdb6a7fe7cf0c87107a8
parent21051af218d7a6fdfc16036980577cf1765f5cbc
avformat/thp: Check av_get_packet() for failure not only for partial output

Fixes null pointer dereference
Fixes: signal_sigsegv_db2c1f_3108_cov_163322880_pikmin2_opening1_partial.thp

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/thp.c