Fix copy paste mistake possible crash (using av_opt_set instead of av_dict_set)
Thanks @guihkx
This commit is contained in:
parent
5b26291269
commit
92f4b1a6f1
@ -818,7 +818,7 @@ static void open_video(AVCodecContext *codec_context,
|
|||||||
//av_dict_set(&options, "preset", "llhq", 0);
|
//av_dict_set(&options, "preset", "llhq", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_opt_set(&options, "rc", "vbr", 0);
|
av_dict_set(&options, "rc", "vbr", 0);
|
||||||
|
|
||||||
ret = avcodec_open2(codec_context, codec_context->codec, &options);
|
ret = avcodec_open2(codec_context, codec_context->codec, &options);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user