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>
Thu, 19 Nov 2015 02:51:39 +0000 (03:51 +0100)
commit7ab1f5b0d4b621dbd78bc901d38fcad6e19c375e
tree544eb7c7540ce0dc00c57f068706142d86925bc4
parent1c73f9d84c8c0726fca4627381b77b99f09af99a
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