Null pointer check / CID26.

Originally committed as revision 13488 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-05-28 01:57:19 +00:00
parent c192426fd8
commit 884d53855d
1 changed files with 2 additions and 0 deletions

View File

@ -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);