summaryrefslogtreecommitdiff
path: root/libavcodec/timecode.h
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2012-01-02 11:53:59 +0100
committerClément Bœsch <ubitux@gmail.com>2012-01-05 20:59:52 +0100
commit2aa7375a9815bebee6e92566fdd1e61cdc312509 (patch)
tree18c45ed5c7d6aa0cd51212f5e7dbc3f862470737 /libavcodec/timecode.h
parenta44b63f6c8bee7cb08f4b96408ce4f5a39326097 (diff)
timecode: add avpriv_check_timecode_rate().
Diffstat (limited to 'libavcodec/timecode.h')
-rw-r--r--libavcodec/timecode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/timecode.h b/libavcodec/timecode.h
index 3f3c17e612..50ea313afa 100644
--- a/libavcodec/timecode.h
+++ b/libavcodec/timecode.h
@@ -73,6 +73,13 @@ uint32_t avpriv_framenum_to_smpte_timecode(unsigned frame, int fps, int drop);
char *avpriv_timecode_to_string(char *buf, const struct ff_timecode *tc, unsigned frame);
/**
+ * Check if timecode rate is valid and consistent with the drop flag.
+ *
+ * @return 0 on success, negative value on failure
+ */
+int avpriv_check_timecode_rate(void *avcl, AVRational rate, int drop);
+
+/**
* Parse SMTPE 12M time representation (hh:mm:ss[:;.]ff). str and rate fields
* from tc struct must be set.
*