Commit 3489d004 authored by ivo's avatar ivo

Fix segmentation fault for gray16le to gray conversion.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8648 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d3f15d86
......@@ -1886,7 +1886,9 @@ static void gray16be_to_gray(AVPicture *dst, const AVPicture *src,
static void gray16le_to_gray(AVPicture *dst, const AVPicture *src,
int width, int height)
{
gray16_to_gray(dst, src + 1, width, height);
AVPicture tmpsrc = *src;
tmpsrc.data[0]++;
gray16_to_gray(dst, &tmpsrc, width, height);
}
static void gray16_to_gray16(AVPicture *dst, const AVPicture *src,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment