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:
Hendrik Leppkes 2013-04-13 15:45:55 +02:00 committed by Michael Niedermayer
parent 9b672d4017
commit cac309611c
1 changed files with 1 additions and 1 deletions

View File

@ -1662,7 +1662,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
{
struct tm time;
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_hour = (timestamp >> 24 & 0XF);
time.tm_min = (timestamp >> 16 & 0xF);