Revision 198ac67f

View differences:

libavformat/avformat.h
54 54
#ifndef FF_API_REGISTER_PROTOCOL
55 55
#define FF_API_REGISTER_PROTOCOL  (LIBAVFORMAT_VERSION_MAJOR < 53)
56 56
#endif
57
#ifndef FF_API_GUESS_FORMAT
58
#define FF_API_GUESS_FORMAT       (LIBAVFORMAT_VERSION_MAJOR < 53)
59
#endif
57 60

  
58 61
/**
59 62
 * I return the LIBAVFORMAT_VERSION_INT constant.  You got
......
898 901
/* utils.c */
899 902
void av_register_input_format(AVInputFormat *format);
900 903
void av_register_output_format(AVOutputFormat *format);
901
#if LIBAVFORMAT_VERSION_MAJOR < 53
904
#if FF_API_GUESS_FORMAT
902 905
attribute_deprecated AVOutputFormat *guess_stream_format(const char *short_name,
903 906
                                    const char *filename,
904 907
                                    const char *mime_type);
libavformat/utils.c
189 189
    return !strcasecmp(name, names);
190 190
}
191 191

  
192
#if LIBAVFORMAT_VERSION_MAJOR < 53
192
#if FF_API_GUESS_FORMAT
193 193
AVOutputFormat *guess_format(const char *short_name, const char *filename,
194 194
                             const char *mime_type)
195 195
{
......
234 234
    return fmt_found;
235 235
}
236 236

  
237
#if LIBAVFORMAT_VERSION_MAJOR < 53
237
#if FF_API_GUESS_FORMAT
238 238
AVOutputFormat *guess_stream_format(const char *short_name, const char *filename,
239 239
                             const char *mime_type)
240 240
{

Also available in: Unified diff