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>
Mon, 13 May 2013 23:29:16 +0000 (01:29 +0200)
commitd814b9b51ddd3764e809c1d0f82b770e0bc085fd
tree91a4fa8864ccc9474643ba8dc3c1ceb67b1f56ee
parent1d285db8a3a85fb5eadd28640eb121684d7f6463
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>
(cherry picked from commit c1f2c4c3b49277d65b71ccdd3b6b2878f1b593eb)

Conflicts:

libavcodec/vmdav.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0baa0a5a02e16ef097ed9f72bc8a7d7b585c7652)

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