You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/mxf: fix parsing of the month from mxf timestamps
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
9b672d4017
commit
cac309611c
@@ -1662,7 +1662,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
|
|||||||
{
|
{
|
||||||
struct tm time;
|
struct tm time;
|
||||||
time.tm_year = (timestamp >> 48) - 1900;
|
time.tm_year = (timestamp >> 48) - 1900;
|
||||||
time.tm_mon = (timestamp >> 48 & 0xF) - 1;
|
time.tm_mon = (timestamp >> 40 & 0xF) - 1;
|
||||||
time.tm_mday = (timestamp >> 32 & 0xF);
|
time.tm_mday = (timestamp >> 32 & 0xF);
|
||||||
time.tm_hour = (timestamp >> 24 & 0XF);
|
time.tm_hour = (timestamp >> 24 & 0XF);
|
||||||
time.tm_min = (timestamp >> 16 & 0xF);
|
time.tm_min = (timestamp >> 16 & 0xF);
|
||||||
|
Reference in New Issue
Block a user