Mercurial > libavformat.hg
diff utils.c @ 5486:0794c77c3c46 libavformat
Deprecate guess_format() in favor of av_guess_format().
author | stefano |
---|---|
date | Fri, 01 Jan 2010 12:46:24 +0000 |
parents | 68c900a2d203 |
children | 033545e4dfd0 |
line wrap: on
line diff
--- a/utils.c Fri Jan 01 12:29:22 2010 +0000 +++ b/utils.c Fri Jan 01 12:46:24 2010 +0000 @@ -182,9 +182,17 @@ return !strcasecmp(name, names); } +#if LIBAVFORMAT_VERSION_MAJOR < 53 AVOutputFormat *guess_format(const char *short_name, const char *filename, const char *mime_type) { + return av_guess_format(short_name, filename, mime_type); +} +#endif + +AVOutputFormat *av_guess_format(const char *short_name, const char *filename, + const char *mime_type) +{ AVOutputFormat *fmt, *fmt_found; int score_max, score;