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>
Thu, 12 Feb 2015 16:10:36 +0000 (17:10 +0100)
commit7997ec54c9d2d555293c3cca91b7ce64fa4b7607
tree37c4cd56a9686895375015b8d81cd5560b0dda91
parente8058269037bc9561753f65ae5f51060ac734eee
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>
libavcodec/h264_slice.c