summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-11-04 12:05:30 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-11-04 18:10:39 +0100
commit74a50e75a8954bdbf142a93a7bb022d16d93512f (patch)
tree103a2d1bfcac14e134026ce380791b01c6f1b0fb
parent008ace3524697f75295b57655215ffe6cad6496b (diff)
lavu: drop disabled FF_API_OLD_TC_ADJUST_FRAMENUM code
-rw-r--r--libavutil/timecode.c11
-rw-r--r--libavutil/timecode.h12
-rw-r--r--libavutil/version.h3
3 files changed, 1 insertions, 25 deletions
diff --git a/libavutil/timecode.c b/libavutil/timecode.c
index fcbd00d660..77d828d56f 100644
--- a/libavutil/timecode.c
+++ b/libavutil/timecode.c
@@ -31,17 +31,6 @@
#include "log.h"
#include "error.h"
-#ifdef FF_API_OLD_TC_ADJUST_FRAMENUM
-int av_timecode_adjust_ntsc_framenum(int framenum)
-{
- /* only works for NTSC 29.97 */
- int d = framenum / 17982;
- int m = framenum % 17982;
- //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */
- return framenum + 18 * d + 2 * ((m - 2) / 1798);
-}
-#endif
-
int av_timecode_adjust_ntsc_framenum2(int framenum, int fps)
{
/* only works for NTSC 29.97 and 59.94 */
diff --git a/libavutil/timecode.h b/libavutil/timecode.h
index 17d6b95ffd..56e3975fd8 100644
--- a/libavutil/timecode.h
+++ b/libavutil/timecode.h
@@ -49,16 +49,6 @@ typedef struct {
* Adjust frame number for NTSC drop frame time code.
*
* @param framenum frame number to adjust
- * @return adjusted frame number
- * @warning adjustment is only valid in NTSC 29.97
- * @deprecated use av_timecode_adjust_ntsc_framenum2 instead
- */
-attribute_deprecated int av_timecode_adjust_ntsc_framenum(int framenum);
-
-/**
- * Adjust frame number for NTSC drop frame time code.
- *
- * @param framenum frame number to adjust
* @param fps frame per second, 30 or 60
* @return adjusted frame number
* @warning adjustment is only valid in NTSC 29.97 and 59.94
@@ -73,7 +63,7 @@ int av_timecode_adjust_ntsc_framenum2(int framenum, int fps);
* @return the SMPTE binary representation
*
* @note Frame number adjustment is automatically done in case of drop timecode,
- * you do NOT have to call av_timecode_adjust_ntsc_framenum().
+ * you do NOT have to call av_timecode_adjust_ntsc_framenum2().
* @note The frame number is relative to tc->start.
* @note Color frame (CF), binary group flags (BGF) and biphase mark polarity
* correction (PC) bits are set to zero.
diff --git a/libavutil/version.h b/libavutil/version.h
index 809530e0d8..a5d3e179de 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -111,9 +111,6 @@
#ifndef FF_API_OLD_AVOPTIONS
#define FF_API_OLD_AVOPTIONS (LIBAVUTIL_VERSION_MAJOR < 53)
#endif
-#ifndef FF_API_OLD_TC_ADJUST_FRAMENUM
-#define FF_API_OLD_TC_ADJUST_FRAMENUM (LIBAVUTIL_VERSION_MAJOR < 52)
-#endif
#ifndef FF_API_PIX_FMT
#define FF_API_PIX_FMT (LIBAVUTIL_VERSION_MAJOR < 53)
#endif