avcodec/h264_slice: Check picture structure before setting the related fields
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Feb 2015 01:22:44 +0000 (02:22 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2015 18:43:19 +0000 (19:43 +0100)
commit0afe061f2877d35482faf9079a3c74000791b998
treeb4124679939c11c3555a8d9572b01c3ad9084711
parente6093f5b85b3b938576d284a54833ecc0b7ebe96
avcodec/h264_slice: Check picture structure before setting the related fields

This might fix a hypothetical race condition

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f111831ed61103f9fa8fdda41473a23da016bdaa)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Conflicts:

libavcodec/h264_slice.c
libavcodec/h264.c