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:
56b04ce
)
segfault fix
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 11 Jul 2005 00:43:21 +0000
(
00:43
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 11 Jul 2005 00:43:21 +0000
(
00:43
+0000)
Originally committed as revision 4430 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
1ba723a
..
afb66fa
100644
(file)
--- a/
libavcodec/imgconvert.c
+++ b/
libavcodec/imgconvert.c
@@
-576,6
+576,8
@@
static void img_copy_plane(uint8_t *dst, int dst_wrap,
const uint8_t *src, int src_wrap,
int width, int height)
{
+ if((!dst) || (!src))
+ return;
for(;height > 0; height--) {
memcpy(dst, src, width);
dst += dst_wrap;