From 0743de4ffd063d17df7a66aa579746c4f427ae1a Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 30 Sep 2010 20:31:42 +0000 Subject: add FF_API_USE_LPC define to disable the deprecated AVCodecContext.use_lpc field Originally committed as revision 25275 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flacenc.c') diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 60cab8ed8f..824e639945 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -288,7 +288,7 @@ static av_cold int flac_encode_init(AVCodecContext *avctx) s->options.max_partition_order = ((int[]){ 2, 2, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8})[level]; /* set compression option overrides from AVCodecContext */ -#if LIBAVCODEC_VERSION_MAJOR < 53 +#if FF_API_USE_LPC /* for compatibility with deprecated AVCodecContext.use_lpc */ if (avctx->use_lpc == 0) { s->options.lpc_type = AV_LPC_TYPE_FIXED; -- cgit v1.2.3