[FFmpeg-cvslog] lavf/mxf: fix parsing of the month from mxf timestamps

Hendrik Leppkes git at videolan.org
Sat Apr 13 16:09:14 CEST 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sat Apr 13 15:45:55 2013 +0200| [cac309611cf3f074a367866fb4cd5d7286f1a6b6] | committer: Michael Niedermayer

lavf/mxf: fix parsing of the month from mxf timestamps

Reviewed-by: Matthieu Bouron <matthieu.bouron at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cac309611cf3f074a367866fb4cd5d7286f1a6b6
---

 libavformat/mxfdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 9eeba55..adc5c68 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);



More information about the ffmpeg-cvslog mailing list