Mercurial > libavformat.hg
changeset 6319:258c03dc3307 libavformat
Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.
This change also adds a linking-time dependency of libavcodec and of
libavfilter on libavcore.
author | stefano |
---|---|
date | Mon, 26 Jul 2010 23:12:28 +0000 |
parents | 1c7e9dfdefe3 |
children | c12a0b951902 |
files | utils.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Jul 26 22:22:42 2010 +0000 +++ b/utils.c Mon Jul 26 23:12:28 2010 +0000 @@ -3182,15 +3182,17 @@ } #if LIBAVFORMAT_VERSION_MAJOR < 53 +#include "libavcore/parseutils.h" + int parse_image_size(int *width_ptr, int *height_ptr, const char *str) { - return av_parse_video_frame_size(width_ptr, height_ptr, str); + return av_parse_video_size(width_ptr, height_ptr, str); } int parse_frame_rate(int *frame_rate_num, int *frame_rate_den, const char *arg) { AVRational frame_rate; - int ret = av_parse_video_frame_rate(&frame_rate, arg); + int ret = av_parse_video_rate(&frame_rate, arg); *frame_rate_num= frame_rate.num; *frame_rate_den= frame_rate.den; return ret;