projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
587d072
)
Fix segmentation fault for gray16le to gray conversion.
author
Ivo van Poorten
<ivop@euronet.nl>
Sat, 7 Apr 2007 19:24:27 +0000
(19:24 +0000)
committer
Ivo van Poorten
<ivop@euronet.nl>
Sat, 7 Apr 2007 19:24:27 +0000
(19:24 +0000)
Originally committed as revision 8648 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
2971afa
..
41383c0
100644
(file)
--- 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,