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>
Wed, 10 Jun 2015 00:13:09 +0000 (02:13 +0200)
commite5f7aeb46f55fc3134a55e435a1bee8f5ac8b974
treed0301c91bf3bd214a345b704a95879ceea33934c
parentae14a444f282ce67bfcc876c678e60e37964b36c
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