Commit d0e43cf1 authored by Marton Balint's avatar Marton Balint

avformat/mxfdec: replace obsolete comment

We no longer use strftime directly but use av_timegm to get an int64_t timestamp.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 6c7eb070
...@@ -2563,9 +2563,7 @@ static int64_t mxf_timestamp_to_int64(uint64_t timestamp) ...@@ -2563,9 +2563,7 @@ static int64_t mxf_timestamp_to_int64(uint64_t timestamp)
time.tm_min = (timestamp >> 16 & 0xFF); time.tm_min = (timestamp >> 16 & 0xFF);
time.tm_sec = (timestamp >> 8 & 0xFF); time.tm_sec = (timestamp >> 8 & 0xFF);
/* msvcrt versions of strftime calls the invalid parameter handler /* Clip values for legacy reasons. Maybe we should return error instead? */
* (aborting the process if one isn't set) if the parameters are out
* of range. */
time.tm_mon = av_clip(time.tm_mon, 0, 11); time.tm_mon = av_clip(time.tm_mon, 0, 11);
time.tm_mday = av_clip(time.tm_mday, 1, 31); time.tm_mday = av_clip(time.tm_mday, 1, 31);
time.tm_hour = av_clip(time.tm_hour, 0, 23); time.tm_hour = av_clip(time.tm_hour, 0, 23);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment