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>
Sat, 7 Feb 2015 02:59:45 +0000 (03:59 +0100)
commitf111831ed61103f9fa8fdda41473a23da016bdaa
tree7502b2ba14dc55a9596e5199510652a0e7b82449
parentf906982c9411f3062e3ce68013309b37c213c4dd
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>
libavcodec/h264_slice.c