diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-10-06 21:54:44 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-10-06 21:54:44 +0200 |
commit | 92f4b1a6f1516bf1dcec1da2dbb42d0062d0d13b (patch) | |
tree | 5c947552928a3f3a7e0b927e25b5111cc79c0331 | |
parent | 5b26291269aa0b2d2a489b0d7b167d084a52aaed (diff) |
Fix copy paste mistake possible crash (using av_opt_set instead of av_dict_set)
Thanks @guihkx
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4a634d6..8c5c7aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) { |