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)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 14 Apr 2014 20:55:38 +0000 (16:55 -0400)
commit7fd6c9fb49573870b48a995947edc83eedd7e86e
treeb81fd588c721c710d4a0da8e8d278322da5a3738
parent175b53d051cf9e17583106c828c35d169f335ea3
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