avcodec/012v: redesign main loop
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Mar 2015 18:18:34 +0000 (19:18 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2015 00:52:52 +0000 (01:52 +0100)
commit749cd89ca94d3540601f4837052cbb961eb99e06
treef4d99ace30cd3343dbeafe013f83cea254012996
parent2b408d257fed340eb7b27aa25dd1b7bc6eb38a4f
avcodec/012v: redesign main loop

Fixes out of array accesses
Fixes: ffmpeg_012v_crash.ts

Found-by: Thomas Lindroth <thomas.lindroth@gmail.com>
Reviewed-by: Thomas Lindroth <thomas.lindroth@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 48df30d36c3ca360c407d84f96749888d1fbe853)

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