aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-06 21:54:44 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-06 21:54:44 +0200
commit92f4b1a6f1516bf1dcec1da2dbb42d0062d0d13b (patch)
tree5c947552928a3f3a7e0b927e25b5111cc79c0331
parent5b26291269aa0b2d2a489b0d7b167d084a52aaed (diff)
Fix copy paste mistake possible crash (using av_opt_set instead of av_dict_set)
Thanks @guihkx
-rw-r--r--src/main.cpp2
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) {