vmdav: Try to fix unpack_rle()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 May 2013 21:46:38 +0000 (23:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 May 2013 21:51:05 +0000 (23:51 +0200)
commitc1f2c4c3b49277d65b71ccdd3b6b2878f1b593eb
tree9de7ffb64931e18a83a17bd4e7391d993cc8e640
parentd602f16a377a84c5ba843c2d1ae03f8085ae758d
vmdav: Try to fix unpack_rle()

This fixes out of array accesses
The code prior to this commit could not have worked, thus obviously
was untested. I was also not able to find a valid sample that uses this
code.
This fix is thus only based on the description of the format

If someone has a sample that uses unpack_rle(), please mail me.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vmdav.c