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:
c192426
)
Null pointer check / CID26.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 28 May 2008 01:57:19 +0000
(
01:57
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 28 May 2008 01:57:19 +0000
(
01:57
+0000)
Originally committed as revision 13488 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/yuv4mpeg.c
patch
|
blob
|
history
diff --git
a/libavformat/yuv4mpeg.c
b/libavformat/yuv4mpeg.c
index 6f1eb5d6e676d718310b89e4efd91aed4a3d1a18..d05d8f6514ce93b13467754630e24824c365a745 100644
(file)
--- a/
libavformat/yuv4mpeg.c
+++ b/
libavformat/yuv4mpeg.c
@@
-322,6
+322,8
@@
static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
st = av_new_stream(s, 0);
+ if(!st)
+ return -1;
st->codec->width = width;
st->codec->height = height;
av_reduce(&raten, &rated, raten, rated, (1UL<<31)-1);