avcodec/h264_slice: Do not change frame_num after the first slice
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Feb 2015 01:06:20 +0000 (02:06 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Feb 2015 19:48:08 +0000 (20:48 +0100)
commit7b213e88b5e6d39a2c8a8340c746b70d1019e89c
treebd479cdb23fcfd422dfa3a2eb7151573a2a0e88f
parentb250375e77a587a072108bb036ffc4d553bc8c3c
avcodec/h264_slice: Do not change frame_num after the first slice

Fixes potential race condition
Fixes: signal_sigsegv_1472ac3_468_cov_2915641226_CABACI3_Sony_B.jsv

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

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