History

Cosmetics: rename 'name' av_strtod() param to 'numstr'. The new name is more expressive.

Originally committed as revision 19249 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 17 years ago

Commit e877eaa1 parent 87b4dd31 file · +3 −3Browse files

Unified · Split

libavcodec/eval.c+3−3
@@ -86,12 +86,12 @@ static const int8_t si_prefixes['z' - 'E' + 1]={ · 85 unmodified lines
86 * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This86 * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This
87 * function assumes that the unit of numbers is bits not bytes.87 * function assumes that the unit of numbers is bits not bytes.
88 */88 */
89static double av_strtod(const char *name, char **tail) {89static double av_strtod(const char *numstr, char **tail) {
90 double d;90 double d;
91 char *next;91 char *next;
92 d = strtod(name, &next);92 d = strtod(numstr, &next);
93 /* if parsing succeeded, check for and interpret postfixes */93 /* if parsing succeeded, check for and interpret postfixes */
94 if (next!=name) {94 if (next!=numstr) {
95 95
96 if(*next >= 'E' && *next <= 'z'){96 if(*next >= 'E' && *next <= 'z'){
97 int e= si_prefixes[*next - 'E'];97 int e= si_prefixes[*next - 'E'];

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