Revision 364cacc7

View differences:

libavformat/avformat.h
48 48
#ifndef FF_API_URL_CLASS
49 49
#define FF_API_URL_CLASS     (LIBAVFORMAT_VERSION_MAJOR >= 53)
50 50
#endif
51
#ifndef FF_API_URL_RESETBUF
52
#define FF_API_URL_RESETBUF       (LIBAVFORMAT_VERSION_MAJOR < 53)
53
#endif
51 54
#ifndef FF_API_REGISTER_PROTOCOL
52 55
#define FF_API_REGISTER_PROTOCOL  (LIBAVFORMAT_VERSION_MAJOR < 53)
53 56
#endif
libavformat/avio.h
454 454

  
455 455
/** @warning must be called before any I/O */
456 456
int url_setbufsize(ByteIOContext *s, int buf_size);
457
#if LIBAVFORMAT_VERSION_MAJOR < 53
457
#if FF_API_URL_RESETBUF
458 458
/** Reset the buffer for reading or writing.
459 459
 * @note Will drop any data currently in the buffer without transmitting it.
460 460
 * @param flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY
libavformat/aviobuf.c
36 36
#define SHORT_SEEK_THRESHOLD 4096
37 37

  
38 38
static void fill_buffer(ByteIOContext *s);
39
#if LIBAVFORMAT_VERSION_MAJOR >= 53
39
#if !FF_API_URL_RESETBUF
40 40
static int url_resetbuf(ByteIOContext *s, int flags);
41 41
#endif
42 42

  
......
632 632
    return 0;
633 633
}
634 634

  
635
#if LIBAVFORMAT_VERSION_MAJOR < 53
635
#if FF_API_URL_RESETBUF
636 636
int url_resetbuf(ByteIOContext *s, int flags)
637 637
#else
638 638
static int url_resetbuf(ByteIOContext *s, int flags)
639 639
#endif
640 640
{
641
#if LIBAVFORMAT_VERSION_MAJOR < 53
641
#if FF_API_URL_RESETBUF
642 642
    if (flags & URL_RDWR)
643 643
        return AVERROR(EINVAL);
644 644
#else

Also available in: Unified diff