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>
Tue, 10 Mar 2015 23:18:22 +0000 (00:18 +0100)
commite75bb490ca39cc1282a286b3beebb681f43fe1f5
tree2f53113405f1e527a329dfc5e03aa0eec69b3e6a
parentf8bb156fa1f85f9a800ceae137403d83e5347ac4
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