You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Null pointer check / CID26.
Originally committed as revision 13488 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user