ffmpeg: fix invalid NULL pointer access
Catched on Ubuntu 12.04 with FFMPEG: codec: YES (ver 53.35.0) format: YES (ver 53.21.1) util: YES (ver 51.22.3) swscale: YES (ver 2.1.0) resample: NO gentoo-style: YES
This commit is contained in:
parent
33f5ac5c15
commit
4760d32937
@ -1269,7 +1269,8 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
|
||||
c->gop_size = -1;
|
||||
c->qmin = -1;
|
||||
c->bit_rate = 0;
|
||||
av_opt_set(c->priv_data,"crf","23", 0);
|
||||
if (c->priv_data)
|
||||
av_opt_set(c->priv_data,"crf","23", 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user