summaryrefslogtreecommitdiff
path: root/libavcodec/flacenc.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-09-30 20:31:42 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-09-30 20:31:42 +0000
commit0743de4ffd063d17df7a66aa579746c4f427ae1a (patch)
treeaeff42d60301faae08ef4c5dd8c8791ce45df467 /libavcodec/flacenc.c
parentab3efd0077a5b81b71819c3a792bb0bc59b9d60d (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.c2
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;