Commit 6025738b authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5454 from alalek:fix_ffmpeg_priv_data

parents 7a4b2e18 4760d329
......@@ -1274,7 +1274,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
......
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