h264: do not call field_end if we do not have a current picture
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:42:21 +0000 (20:42 +0100)
commit00dbff4c3e048b4abd01bf805725aabff0fa5ee1
tree268386198f4104b7b3eaf717d8a7a24537d0c42d
parent7f0e81db3c4ee6f8ce15058bafa72ce928a89f3f
h264: do not call field_end if we do not have a current picture

Fixes invalid reads.

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