diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-19 21:28:43 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-19 21:28:43 +0000 |
commit | 364cacc7c7767f5ce147b4af5116fd5c427b0d5a (patch) | |
tree | 644c1b029f822322ae8048925c2251e0b759be12 /libavformat/aviobuf.c | |
parent | 838b27b42c1838857e6b2ad47b4a932717108c10 (diff) |
add FF_API_URL_RESETBUF define to disable the deprecated url_resetbuf()
public function
Originally committed as revision 24841 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 2a96f5aaa3..faae089195 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -36,7 +36,7 @@ #define SHORT_SEEK_THRESHOLD 4096 static void fill_buffer(ByteIOContext *s); -#if LIBAVFORMAT_VERSION_MAJOR >= 53 +#if !FF_API_URL_RESETBUF static int url_resetbuf(ByteIOContext *s, int flags); #endif @@ -632,13 +632,13 @@ int url_setbufsize(ByteIOContext *s, int buf_size) return 0; } -#if LIBAVFORMAT_VERSION_MAJOR < 53 +#if FF_API_URL_RESETBUF int url_resetbuf(ByteIOContext *s, int flags) #else static int url_resetbuf(ByteIOContext *s, int flags) #endif { -#if LIBAVFORMAT_VERSION_MAJOR < 53 +#if FF_API_URL_RESETBUF if (flags & URL_RDWR) return AVERROR(EINVAL); #else |