diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-01 12:46:24 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-01 12:46:24 +0000 |
commit | a1f547b94a89b7d39a7dc583b048052d4d8a50e3 (patch) | |
tree | 3bf90032963f2887c9b1826df94b34d9d74b5d4d /libavformat/utils.c | |
parent | debe86bfedeb3dce40efb726f8ea28cdf086ed0a (diff) | |
download | ffmpeg-a1f547b94a89b7d39a7dc583b048052d4d8a50e3.tar.gz |
Deprecate guess_format() in favor of av_guess_format().
Originally committed as revision 20991 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 5eb360c229..79c5a1d36b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -182,9 +182,17 @@ static int match_format(const char *name, const char *names) 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; |