summaryrefslogtreecommitdiff
path: root/libavutil/timecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/timecode.h')
-rw-r--r--libavutil/timecode.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libavutil/timecode.h b/libavutil/timecode.h
index da252c1c17..be4102e577 100644
--- a/libavutil/timecode.h
+++ b/libavutil/timecode.h
@@ -51,8 +51,19 @@ typedef struct {
* @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
*/
-int av_timecode_adjust_ntsc_framenum(int framenum);
+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
+ */
+int av_timecode_adjust_ntsc_framenum2(int framenum, int fps);
/**
* Convert frame number to SMPTE 12M binary representation.