1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

libavfilter: add ff_parse_time_base()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-05-17 02:37:13 +02:00
parent 6579bc439b
commit 3448404a70
2 changed files with 22 additions and 0 deletions

View File

@@ -111,6 +111,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.
*