History

avfilter/vf_libvmaf: use av_dict_iterate

Marvin Scholz committed 3 years ago

Commit 492b45c1 parent 734acfd1 file · +5 −5Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_libvmaf.c+5−5
@@ -236,9 +236,9 @@ static int parse_features(AVFilterContext *ctx) · 235 unmodified lines
236236 for (unsigned i = 0; i < dict_cnt; i++) {
237237 char *feature_name = NULL;
238238 VmafFeatureDictionary *feature_opts_dict = NULL;
239− AVDictionaryEntry *e = NULL;
239+ const AVDictionaryEntry *e = NULL;
240240
241− while (e = av_dict_get(dict[i], "", e, AV_DICT_IGNORE_SUFFIX)) {
241+ while (e = av_dict_iterate(dict[i], e)) {
242242 if (av_stristr(e->key, "name")) {
243243 feature_name = e->value;
244244 continue;
@@ -295,11 +295,11 @@ static int parse_models(AVFilterContext *ctx) · 50 unmodified lines
295295
296296 for (unsigned i = 0; i < dict_cnt; i++) {
297297 VmafModelConfig model_cfg = { 0 };
298− AVDictionaryEntry *e = NULL;
298+ const AVDictionaryEntry *e = NULL;
299299 char *version = NULL;
300300 char *path = NULL;
301301
302− while (e = av_dict_get(dict[i], "", e, AV_DICT_IGNORE_SUFFIX)) {
302+ while (e = av_dict_iterate(dict[i], e)) {
303303 if (av_stristr(e->key, "disable_clip")) {
304304 model_cfg.flags |= av_stristr(e->value, "true") ?
305305 VMAF_MODEL_FLAG_DISABLE_CLIP : 0;
@@ -355,7 +355,7 @@ static int parse_models(AVFilterContext *ctx) · 49 unmodified lines
355355 goto exit;
356356 }
357357
358− while (e = av_dict_get(dict[i], "", e, AV_DICT_IGNORE_SUFFIX)) {
358+ while (e = av_dict_iterate(dict[i], e)) {
359359 VmafFeatureDictionary *feature_opts_dict = NULL;
360360 char *feature_opt = NULL;
361361

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t