History

avfilter/vf_ssim: remove precision limits for metadata values

Paul B Mahol committed 5 years ago

Commit 3300d711 parent 95b854d1 file · +1 −1Browse files

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

Unified · Split

libavfilter/vf_ssim.c+1−1
@@ -83,7 +83,7 @@ FRAMESYNC_DEFINE_CLASS(ssim, SSIMContext, fs); · 82 unmodified lines
83static void set_meta(AVDictionary **metadata, const char *key, char comp, float d)83static void set_meta(AVDictionary **metadata, const char *key, char comp, float d)
84{84{
85 char value[128];85 char value[128];
86 snprintf(value, sizeof(value), "%0.2f", d);86 snprintf(value, sizeof(value), "%f", d);
87 if (comp) {87 if (comp) {
88 char key2[128];88 char key2[128];
89 snprintf(key2, sizeof(key2), "%s%c", key, comp);89 snprintf(key2, sizeof(key2), "%s%c", key, comp);

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