mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-11 03:31:59 +08:00
avutil/parseutils: dont assume standard time when parsing a timestamp
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -687,6 +687,7 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
|
|||||||
dt2.tm_sec = dt.tm_sec;
|
dt2.tm_sec = dt.tm_sec;
|
||||||
dt = dt2;
|
dt = dt2;
|
||||||
}
|
}
|
||||||
|
dt.tm_isdst = is_utc ? 0 : -1;
|
||||||
t = is_utc ? av_timegm(&dt) : mktime(&dt);
|
t = is_utc ? av_timegm(&dt) : mktime(&dt);
|
||||||
t += tzoffset;
|
t += tzoffset;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user