* Fix ffmpeg API version checks. (SF bug #3549925)

This commit is contained in:
Justin Maggard 2012-07-30 19:56:30 +00:00
parent b15a5d144d
commit 89c70bab24

View File

@ -137,7 +137,7 @@ static inline int
lav_open(AVFormatContext **ctx, const char *filename) lav_open(AVFormatContext **ctx, const char *filename)
{ {
int ret; int ret;
#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(2<<8)+0) #if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(17<<8)+0)
ret = avformat_open_input(ctx, filename, NULL, NULL); ret = avformat_open_input(ctx, filename, NULL, NULL);
if (ret == 0) if (ret == 0)
avformat_find_stream_info(*ctx, NULL); avformat_find_stream_info(*ctx, NULL);
@ -152,7 +152,7 @@ lav_open(AVFormatContext **ctx, const char *filename)
static inline void static inline void
lav_close(AVFormatContext *ctx) lav_close(AVFormatContext *ctx)
{ {
#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(2<<8)+0) #if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(17<<8)+0)
avformat_close_input(&ctx); avformat_close_input(&ctx);
#else #else
av_close_input_file(ctx); av_close_input_file(ctx);