From 89c70bab24d9e6e766f1f5025e690c83f7f4b0f3 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 30 Jul 2012 19:56:30 +0000 Subject: [PATCH] * Fix ffmpeg API version checks. (SF bug #3549925) --- metadata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata.c b/metadata.c index a986c58..0314da4 100644 --- a/metadata.c +++ b/metadata.c @@ -137,7 +137,7 @@ static inline int lav_open(AVFormatContext **ctx, const char *filename) { 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); if (ret == 0) avformat_find_stream_info(*ctx, NULL); @@ -152,7 +152,7 @@ lav_open(AVFormatContext **ctx, const char *filename) static inline void 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); #else av_close_input_file(ctx);