Commit 884d5385 authored by Michael Niedermayer's avatar Michael Niedermayer

Null pointer check / CID26.

Originally committed as revision 13488 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c192426f
...@@ -322,6 +322,8 @@ static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -322,6 +322,8 @@ static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap)
} }
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
if(!st)
return -1;
st->codec->width = width; st->codec->width = width;
st->codec->height = height; st->codec->height = height;
av_reduce(&raten, &rated, raten, rated, (1UL<<31)-1); av_reduce(&raten, &rated, raten, rated, (1UL<<31)-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment