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:
73b1619
)
indeo5: Fix null pointer dereference.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Dec 2011 21:06:35 +0000
(22:06 +0100)
committer
Janne Grunau
<janne-libav@jannau.net>
Fri, 6 Jan 2012 23:18:42 +0000
(
00:18
+0100)
Bug found by: Oana Stratulat
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavcodec/ivi_common.c
patch
|
blob
|
history
diff --git
a/libavcodec/ivi_common.c
b/libavcodec/ivi_common.c
index
9cec0a8
..
eedcd28
100644
(file)
--- a/
libavcodec/ivi_common.c
+++ b/
libavcodec/ivi_common.c
@@
-611,6
+611,9
@@
void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
const int16_t *src = plane->bands[0].buf;
uint32_t pitch = plane->bands[0].pitch;
+ if (!src)
+ return;
+
for (y = 0; y < plane->height; y++) {
for (x = 0; x < plane->width; x++)
dst[x] = av_clip_uint8(src[x] + 128);