h264: move next/last picture init to decode_slice_header
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2013 19:05:43 +0000 (20:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2013 19:24:31 +0000 (20:24 +0100)
commit8036ba299d332282dc86a94999f9332d38d47c4e
tree7d4d585b0bdcc8ec241df44abfb75716a2fa8016
parent669d50b445960a7929cd4240bd1a086ab7843c92
h264: move next/last picture init to decode_slice_header

This is a regression introduced from the h264/mpegvideo split
Fixes out of array reads

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