[FFmpeg-cvslog] ffprobe: fix scaling of vali in value_string() in case -prefix is selected

Stefano Sabatini git at videolan.org
Wed Apr 23 17:26:43 CEST 2014


ffmpeg | branch: release/2.1 | Stefano Sabatini <stefasab at gmail.com> | Tue Apr 22 13:01:14 2014 +0200| [af04f0d1ce70e265ac1c51fed954668410f211c9] | committer: Carl Eugen Hoyos

ffprobe: fix scaling of vali in value_string() in case -prefix is selected

Fix trac ticket #3523.
(cherry picked from commit 1ba59b1cbeafe7cd28db04f772abd89eb7e4ce1e)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af04f0d1ce70e265ac1c51fed954668410f211c9
---

 ffprobe.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffprobe.c b/ffprobe.c
index a7aef02..7f9c737 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -238,6 +238,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv)
                 vald /= pow(10, index * 3);
                 prefix_string = decimal_unit_prefixes[index];
             }
+            vali = vald;
         }
 
         if (show_float || (use_value_prefix && vald != (long long int)vald))



More information about the ffmpeg-cvslog mailing list