h264: reset first_field if frame_start() fails for missing refs
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 18 Jan 2014 19:41:24 +0000 (20:41 +0100)
commitd1b3fabe6945e511bb20fc9ca52b47eb952526ee
treec7206e21b6114a1fa48b8fe52b46b04b4decdae9
parent210881110d3e22cca36edeaca118b5e22c998266
h264: reset first_field if frame_start() fails for missing refs

In this case we may not have a current frame, while first_field being
set implies we do.

Fixes invalid reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/h264.c