avcodec/truemotion1: Initialize mb_change_byte only when needed
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 02:15:24 +0000 (03:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 02:16:15 +0000 (03:16 +0100)
commita813cdda487e252681df36f675332b04c2e0e5a6
tree4885ac184972361470ed99885abfd7a7e978dac8
parenta8b254e436dce2f5c8c6459108dab4b02cc6b79b
avcodec/truemotion1: Initialize mb_change_byte only when needed

Fixes out of array read
Fixes: d92114d8c2a019b8a6e50cd2a7301b54/asan_heap-oob_26bf563_60_1d3420277533de9dbf8aba3f93af346f.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion1.c