Skip to content

Commit 6381460

Browse files
clear gop_size from opts after use
1 parent 543c225 commit 6381460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zm_videostore.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ bool VideoStore::open() {
307307
const AVDictionaryEntry *opts_gop_size = av_dict_get(opts, "gop_size", nullptr, AV_DICT_MATCH_CASE);
308308
if (opts_gop_size) {
309309
video_out_ctx->gop_size = std::stoul(opts_gop_size->value);
310+
av_dict_set(&opts, "gop_size", nullptr, AV_DICT_MATCH_CASE);
310311
//} else if (!video_out_ctx->gop_size) {
311312
//video_out_ctx->gop_size = 12;
312313
}

0 commit comments

Comments
 (0)