summaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-04-13 15:45:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-13 16:02:52 +0200
commitcac309611cf3f074a367866fb4cd5d7286f1a6b6 (patch)
treeb572ba58b0a1dbdd0df5efe8f9b6d9af3669e987 /libavformat/mxfdec.c
parent9b672d4017bb34992045da2632c3599da791cbc6 (diff)
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>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 9eeba55a5a..adc5c68a0b 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -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);