[Ffmpeg-cvslog] r8648 - trunk/libavcodec/imgconvert.c
ivo
subversion
Sat Apr 7 21:24:27 CEST 2007
Author: ivo
Date: Sat Apr 7 21:24:27 2007
New Revision: 8648
Modified:
trunk/libavcodec/imgconvert.c
Log:
Fix segmentation fault for gray16le to gray conversion.
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c (original)
+++ trunk/libavcodec/imgconvert.c Sat Apr 7 21:24:27 2007
@@ -1886,7 +1886,9 @@ static void gray16be_to_gray(AVPicture *
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,
More information about the ffmpeg-cvslog
mailing list