From dd872bf49f0ef1226c4a1e99e908a5213a59b32f Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 17 Aug 2010 20:23:19 +0000 Subject: add LAVF_API_OLD_METADATA define to disable the deprecated metadata API Originally committed as revision 24818 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/options.c') diff --git a/libavformat/options.c b/libavformat/options.c index 6a7f908fee..acfb4226d6 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -50,7 +50,7 @@ static const AVOption options[]={ {"noparse", "disable AVParsers, this needs nofillin too", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_NOPARSE, INT_MIN, INT_MAX, D, "fflags"}, {"igndts", "ignore dts", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_IGNDTS, INT_MIN, INT_MAX, D, "fflags"}, {"rtphint", "add rtp hinting", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_RTP_HINT, INT_MIN, INT_MAX, E, "fflags"}, -#if LIBAVFORMAT_VERSION_INT < (53<<16) +#if LAVF_API_OLD_METADATA {"track", " set the track number", OFFSET(track), FF_OPT_TYPE_INT, DEFAULT, 0, INT_MAX, E}, {"year", "set the year", OFFSET(year), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, E}, #endif -- cgit v1.2.3