Fix segmentation fault for gray16le to gray conversion.

Originally committed as revision 8648 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ivo van Poorten 2007-04-07 19:24:27 +00:00
parent 587d07227e
commit e5b5149603
1 changed files with 3 additions and 1 deletions

View File

@ -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,