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>
Fri, 13 Mar 2015 16:06:09 +0000 (17:06 +0100)
commit7add0b069258af653b256882348a90dfe596e2af
tree87eb81d8882a99afac7bc4b391381bba0cfd4e1b
parent097417299a0ef87cb3d459388a4b313272d74c38
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>
(cherry picked from commit f2579dbb4b31e6ae731e7f5555680528ef3020ab)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/thp.c