mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00: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:
parent
58dc8bbca4
commit
593987810e
@ -687,6 +687,7 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
|
||||
dt2.tm_sec = dt.tm_sec;
|
||||
dt = dt2;
|
||||
}
|
||||
dt.tm_isdst = is_utc ? 0 : -1;
|
||||
t = is_utc ? av_timegm(&dt) : mktime(&dt);
|
||||
t += tzoffset;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user