avcodec/mjpegdec: Reorder operations to avoid undefined behavior
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Jul 2015 16:53:17 +0000 (18:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Jul 2015 16:53:32 +0000 (18:53 +0200)
commitc9220d5b06536ac359166214b4131a1f15244617
treed53133b06a642f97897fc809fff98174bf7b7fcf
parent9dc0bac9719a7b4c926d0c928ea8684e005f979d
avcodec/mjpegdec: Reorder operations to avoid undefined behavior

Fixes: asan_heap-oob_1dd60fd_267_cov_2954683513_5baad44ca4702949724234e35c5bb341.jpg

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c