forked from FFmpeg/FFmpeg
Null pointer check / CID26.
Originally committed as revision 13488 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c192426fd8
commit
884d53855d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue