mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-02 09:09:59 +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:
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user