mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 04:54:55 +00:00
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
@ -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…
Reference in New Issue
Block a user