History

avfilter/vf_psnr: remove precision limits for metadata values

Paul B Mahol committed 5 years ago

Commit 6c52c271 parent 3300d711 file · +1 −1Browse files

Unified · Split

libavfilter/vf_psnr.c+1−1
@@ -132,7 +132,7 @@ void compute_images_mse(PSNRContext *s, · 131 unmodified lines
132132 static void set_meta(AVDictionary **metadata, const char *key, char comp, float d)
133133 {
134134 char value[128];
135− snprintf(value, sizeof(value), "%0.2f", d);
135+ snprintf(value, sizeof(value), "%f", d);
136136 if (comp) {
137137 char key2[128];
138138 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