mxfmux: Fix off-by-one in the month when generating a timestamp for now
authorSebastian Dröge <sebastian@centricular.com>
Sun, 1 Dec 2024 09:45:34 +0000 (11:45 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 1 Dec 2024 09:45:34 +0000 (11:45 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8018>

subprojects/gst-plugins-bad/gst/mxf/mxftypes.c

index 1ee13a55bea083db6c5aba10f6061ac050011c62..d410635c595a8f44a55c41340e192df6a759dc2c 100644 (file)
@@ -573,7 +573,7 @@ mxf_timestamp_set_now (MXFTimestamp * timestamp)
 #endif
 
   timestamp->year = tm->tm_year + 1900;
-  timestamp->month = tm->tm_mon;
+  timestamp->month = tm->tm_mon + 1;
   timestamp->day = tm->tm_mday;
   timestamp->hour = tm->tm_hour;
   timestamp->minute = tm->tm_min;