diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-10-01 00:31:42 +0400 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-10-01 00:31:42 +0400 |
commit | 0743de4ffd063d17df7a66aa579746c4f427ae1a (patch) | |
tree | aeff42d60301faae08ef4c5dd8c8791ce45df467 /libavcodec/flacenc.c | |
parent | ab3efd0077a5b81b71819c3a792bb0bc59b9d60d (diff) |
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
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |