mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 20:16:42 +08:00
doxygen: Make sure parameter names match between .c and .h files.
This commit is contained in:
@@ -484,7 +484,7 @@ static time_t mktimegm(struct tm *tm)
|
||||
return t;
|
||||
}
|
||||
|
||||
int av_parse_time(int64_t *timeval, const char *datestr, int duration)
|
||||
int av_parse_time(int64_t *timeval, const char *timestr, int duration)
|
||||
{
|
||||
const char *p;
|
||||
int64_t t;
|
||||
@@ -506,19 +506,19 @@ int av_parse_time(int64_t *timeval, const char *datestr, int duration)
|
||||
#undef time
|
||||
time_t now = time(0);
|
||||
|
||||
len = strlen(datestr);
|
||||
len = strlen(timestr);
|
||||
if (len > 0)
|
||||
lastch = datestr[len - 1];
|
||||
lastch = timestr[len - 1];
|
||||
else
|
||||
lastch = '\0';
|
||||
is_utc = (lastch == 'z' || lastch == 'Z');
|
||||
|
||||
memset(&dt, 0, sizeof(dt));
|
||||
|
||||
p = datestr;
|
||||
p = timestr;
|
||||
q = NULL;
|
||||
if (!duration) {
|
||||
if (!strncasecmp(datestr, "now", len)) {
|
||||
if (!strncasecmp(timestr, "now", len)) {
|
||||
*timeval = (int64_t) now * 1000000;
|
||||
return 0;
|
||||
}
|
||||
@@ -555,15 +555,15 @@ int av_parse_time(int64_t *timeval, const char *datestr, int duration)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* parse datestr as a duration */
|
||||
/* parse timestr as a duration */
|
||||
if (p[0] == '-') {
|
||||
negative = 1;
|
||||
++p;
|
||||
}
|
||||
/* parse datestr as HH:MM:SS */
|
||||
/* parse timestr as HH:MM:SS */
|
||||
q = small_strptime(p, time_fmt[0], &dt);
|
||||
if (!q) {
|
||||
/* parse datestr as S+ */
|
||||
/* parse timestr as S+ */
|
||||
dt.tm_sec = strtol(p, (char **)&q, 10);
|
||||
if (q == p) {
|
||||
/* the parsing didn't succeed */
|
||||
|
||||
Reference in New Issue
Block a user