We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ecce84 + 3804d8a commit d1eec53Copy full SHA for d1eec53
.gitignore
@@ -54,6 +54,7 @@ configure.scan
54
src/kvazaar
55
src/libkvazaar.so.*
56
src/kvazaar.pc
57
+src/kvazaar.pc.temp
58
src/version.h
59
tests/kvazaar_tests
60
tests/kvazaar_tests.trs
src/encoder.c
@@ -153,6 +153,12 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg)
153
154
// Take a copy of the config.
155
memcpy(&encoder->cfg, cfg, sizeof(encoder->cfg));
156
+
157
+ // Copy the ROI file path
158
+ if (cfg->roi.file_path) {
159
+ encoder->cfg.roi.file_path = strdup(cfg->roi.file_path);
160
+ }
161
162
// Set fields that are not copied to NULL.
163
encoder->cfg.cqmfile = NULL;
164
encoder->cfg.tiles_width_split = NULL;
0 commit comments