cherry-picks of Reimar's commit to git.videolan.org:ffmpeg.git [PATCH 1/2] Handle input or output len of 0 properly in lzo decoder. [PATCH 2/2] Use av_fast_malloc instead of av_realloc. I'm not sure if this is the bast way to handle it. Janne