h264: move the default_ref_list_done check down after its inputs have been written
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Mar 2013 18:10:04 +0000 (19:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 15 Jan 2014 23:52:56 +0000 (00:52 +0100)
commit97978b7ae8e9313365e0702fe60e226b3c3e0dae
tree754ce400ef3cdd97c3b72bede03e494bd86119a0
parent3f2efac0fec16de92dd110723d73694e3e63946f
h264: move the default_ref_list_done check down after its inputs have been written

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 11c3381ce3c353a4dadf9def6232e7604b0c5d2b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c