From 4b365b08685b0ab9df3f4bae4ee8b6506eb637ea Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Fri, 3 Aug 2012 15:40:15 +0200 Subject: lavu/timecode: add av_timecode_check_frame_rate(). --- libavutil/timecode.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavutil/timecode.h') diff --git a/libavutil/timecode.h b/libavutil/timecode.h index be4102e577..17d6b95ffd 100644 --- a/libavutil/timecode.h +++ b/libavutil/timecode.h @@ -140,4 +140,11 @@ int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start */ int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx); +/** + * Check if the timecode feature is available for the given frame rate + * + * @return 0 if supported, <0 otherwise + */ +int av_timecode_check_frame_rate(AVRational rate); + #endif /* AVUTIL_TIMECODE_H */ -- cgit v1.2.3