diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 02:37:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 02:55:57 +0200 |
commit | 3448404a707b6e236a2ffa7b0453b3300de41b7b (patch) | |
tree | 31f311affbbb1102e058925fbce7be62ab152df9 /libavfilter/internal.h | |
parent | 6579bc439b98501efe14f9043f9582c4161a5209 (diff) | |
download | ffmpeg-3448404a707b6e236a2ffa7b0453b3300de41b7b.tar.gz |
libavfilter: add ff_parse_time_base()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index f06151f90c..bb45274e27 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -112,6 +112,16 @@ int ff_parse_pixel_format(enum PixelFormat *ret, const char *arg, void *log_ctx) int ff_parse_sample_rate(int *ret, const char *arg, void *log_ctx); /** + * Parse a time base. + * + * @param ret unsigned AVRational pointer to where the value should be written + * @param arg string to parse + * @param log_ctx log context + * @return 0 in case of success, a negative AVERROR code on error + */ +int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx); + +/** * Parse a sample format name or a corresponding integer representation. * * @param ret integer pointer to where the value should be written |