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:
83254e2
)
sanity check whether dimensions are non-null
author
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 12 Oct 2005 22:40:10 +0000
(22:40 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 12 Oct 2005 22:40:10 +0000
(22:40 +0000)
Originally committed as revision 4634 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgresample.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgresample.c
b/libavcodec/imgresample.c
index
53471f4
..
d423f38
100644
(file)
--- a/
libavcodec/imgresample.c
+++ b/
libavcodec/imgresample.c
@@
-558,6
+558,9
@@
ImgReSampleContext *img_resample_full_init(int owidth, int oheight,
{
ImgReSampleContext *s;
+ if (!owidth || !oheight || !iwidth || !iheight)
+ return NULL;
+
s = av_mallocz(sizeof(ImgReSampleContext));
if (!s)
return NULL;