Avoid av_memcpy_backptr hang without extra branch.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 30 Dec 2011 09:37:33 +0000 (10:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 21:42:12 +0000 (22:42 +0100)
commita4269652ab831456c77dad3bc59f116f50e6c6f0
tree35103b63d9cb9d771f8f091a05f48ec9c7e922df
parent3ccbd6b06d316bf67b7b7ca4ee40eda3eef0c4c5
Avoid av_memcpy_backptr hang without extra branch.

This only happens for a "back" value of 0 which is invalid anyway,
but lcldec does not properly validate input.
Also extend the documentation to specify valid values.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 874da652b307fe0d2bec08fc5916a9a82537f40c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/lzo.c
libavutil/lzo.h