flvmux: Fix off-by-one in month/day-of-the-week array

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4074

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8017>
This commit is contained in:
Sebastian Dröge 2024-12-01 11:40:14 +02:00 committed by GStreamer Marge Bot
parent f7aac1cc07
commit 3cdc14df99

View file

@ -1185,10 +1185,10 @@ gst_flv_mux_create_metadata (GstFlvMux * mux)
GDateTime *now;
gchar *s;
static const gchar *weekdays[] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
NULL, "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
};
static const gchar *months[] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
NULL, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec"
};