summaryrefslogtreecommitdiff
path: root/libavformat/cutils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-29 18:02:51 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-03 21:35:43 +0100
commita703410d254b9d7097d7da8340d7eb5a60d09162 (patch)
tree1146629cb99063aeb0c2bbe419b0baaaa92e4cc0 /libavformat/cutils.c
parente8189515050ae2e4e204f1f0aa9d0cdca3169903 (diff)
avformat/cutils, dvenc: Move ff_brktimegm to its only user
This also allows to completely remove cutils.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/cutils.c')
-rw-r--r--libavformat/cutils.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/libavformat/cutils.c b/libavformat/cutils.c
deleted file mode 100644
index d86ba05441..0000000000
--- a/libavformat/cutils.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * various simple utilities for libavformat
- * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
- *
- * This file is part of FFmpeg.
- *
- * FFmpeg is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * FFmpeg is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with FFmpeg; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "libavutil/time_internal.h"
-#include "avformat.h"
-#include "internal.h"
-
-#define ISLEAP(y) (((y) % 4 == 0) && (((y) % 100) != 0 || ((y) % 400) == 0))
-#define LEAPS_COUNT(y) ((y)/4 - (y)/100 + (y)/400)
-
-/* This is our own gmtime_r. It differs from its POSIX counterpart in a
- couple of places, though. */
-struct tm *ff_brktimegm(time_t secs, struct tm *tm)
-{
- tm = gmtime_r(&secs, tm);
-
- tm->tm_year += 1900; /* unlike gmtime_r we store complete year here */
- tm->tm_mon += 1; /* unlike gmtime_r tm_mon is from 1 to 12 */
-
- return tm;
-}