add FF_API_GUESS_FORMAT define to disable the deprecated guess_format()

and guess_stream_format() public functions

Originally committed as revision 25480 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2010-10-15 12:45:14 +00:00
parent a15c7fd6cb
commit 198ac67fe8
2 changed files with 6 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ static int match_format(const char *name, const char *names)
return !strcasecmp(name, names);
}
#if LIBAVFORMAT_VERSION_MAJOR < 53
#if FF_API_GUESS_FORMAT
AVOutputFormat *guess_format(const char *short_name, const char *filename,
const char *mime_type)
{
@@ -234,7 +234,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
return fmt_found;
}
#if LIBAVFORMAT_VERSION_MAJOR < 53
#if FF_API_GUESS_FORMAT
AVOutputFormat *guess_stream_format(const char *short_name, const char *filename,
const char *mime_type)
{