avcodec/dpx: Move need_align to act per line
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 13:29:02 +0000 (14:29 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 15:51:30 +0000 (16:51 +0100)
commitd61c3d1fca62b2497e4327af3ea50de5f7a8de0f
tree01f248b635495077dcb5381436e4fa5b7b27849a
parentec1f59150d2437ea36baa0b6052ae1cf89b85ca8
avcodec/dpx: Move need_align to act per line

Fixes out of array read
Fixes: 61cf123c081ee2bb774d307c75bdb99e/asan_heap-oob_1224f76_5546_bee833ffae73f752b489b9eeaac52db7.dpx

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c8aaae8e0f1519bc99bd717ea3067c9cfdb68def)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dpx.c