diff options
author | Ivo van Poorten <ivop@euronet.nl> | 2007-04-07 19:24:27 +0000 |
---|---|---|
committer | Ivo van Poorten <ivop@euronet.nl> | 2007-04-07 19:24:27 +0000 |
commit | e5b5149603c24b1c1b16e829e5db5821c3127d2e (patch) | |
tree | 924c997a928414bc4cf16a4c81dc804cbc1b5859 /libavcodec/imgconvert.c | |
parent | 587d07227eed8021ac38dc352ba72ee5b6714380 (diff) | |
download | ffmpeg-streaming-e5b5149603c24b1c1b16e829e5db5821c3127d2e.zip ffmpeg-streaming-e5b5149603c24b1c1b16e829e5db5821c3127d2e.tar.gz |
Fix segmentation fault for gray16le to gray conversion.
Originally committed as revision 8648 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 2971afa..41383c0 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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, |