lavf: remove FF_API_GUESS_FORMAT cruft
This commit is contained in:
@@ -200,14 +200,6 @@ static int match_format(const char *name, const char *names)
|
||||
return !strcasecmp(name, names);
|
||||
}
|
||||
|
||||
#if FF_API_GUESS_FORMAT
|
||||
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)
|
||||
{
|
||||
@@ -243,27 +235,6 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
|
||||
return fmt_found;
|
||||
}
|
||||
|
||||
#if FF_API_GUESS_FORMAT
|
||||
AVOutputFormat *guess_stream_format(const char *short_name, const char *filename,
|
||||
const char *mime_type)
|
||||
{
|
||||
AVOutputFormat *fmt = av_guess_format(short_name, filename, mime_type);
|
||||
|
||||
if (fmt) {
|
||||
AVOutputFormat *stream_fmt;
|
||||
char stream_format_name[64];
|
||||
|
||||
snprintf(stream_format_name, sizeof(stream_format_name), "%s_stream", fmt->name);
|
||||
stream_fmt = av_guess_format(stream_format_name, NULL, NULL);
|
||||
|
||||
if (stream_fmt)
|
||||
fmt = stream_fmt;
|
||||
}
|
||||
|
||||
return fmt;
|
||||
}
|
||||
#endif
|
||||
|
||||
enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
|
||||
const char *filename, const char *mime_type, enum AVMediaType type){
|
||||
if(type == AVMEDIA_TYPE_VIDEO){
|
||||
|
Reference in New Issue
Block a user