h264: reset first_field when current_picture_ptr is reset
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Jan 2013 22:12:27 +0000 (23:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Jan 2013 22:14:51 +0000 (23:14 +0100)
commitb53adef07b9b3c6f255b43815e26eb21508bacc5
treee587223effa20a1234171206a2c1021f878b45e9
parentf8bab2f87ee7ca30095290ed1db62077fb8dd1bd
h264: reset first_field when current_picture_ptr is reset

Fixes NULL pointer dereference

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