Fix copy paste mistake possible crash (using av_opt_set instead of av_dict_set)

Thanks @guihkx
This commit is contained in:
dec05eba 2022-10-06 21:54:44 +02:00
parent 5b26291269
commit 92f4b1a6f1

View File

@ -818,7 +818,7 @@ static void open_video(AVCodecContext *codec_context,
//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);
if (ret < 0) {