diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-04-22 07:26:07 +0200 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-04-22 16:38:33 -0400 |
commit | dac7e8a94e49e41f1dd0af34dc17d124d5b156ba (patch) | |
tree | 15fab86137f6c9f2b91f2e4925f3fb21c74e7123 /libavutil/utils.c | |
parent | 6d149d28183a59a28143431f8e629484a52948b2 (diff) | |
download | ffmpeg-dac7e8a94e49e41f1dd0af34dc17d124d5b156ba.tar.gz |
avutil: Add av_get_time_base_q()
This fixes usage of AV_TIME_BASE_Q in C++ applications, which
cannot use compound literals directly in their code.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/utils.c')
-rw-r--r-- | libavutil/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/utils.c b/libavutil/utils.c index 4c82503d9c..6c9b493a8f 100644 --- a/libavutil/utils.c +++ b/libavutil/utils.c @@ -113,3 +113,8 @@ unsigned av_int_list_length_for_size(unsigned elsize, } return i; } + +AVRational av_get_time_base_q(void) +{ + return (AVRational){1, AV_TIME_BASE}; +} |