summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
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/avcodec.h
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/avcodec.h')
-rw-r--r--libavcodec/avcodec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e2e4d9dbd6..f4b2569d11 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -66,6 +66,9 @@
#ifndef FF_API_SUBTITLE_OLD
#define FF_API_SUBTITLE_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
+#ifndef FF_API_USE_LPC
+#define FF_API_USE_LPC (LIBAVCODEC_VERSION_MAJOR < 53)
+#endif
#define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
#define AV_TIME_BASE 1000000
@@ -2453,7 +2456,7 @@ typedef struct AVCodecContext {
int compression_level;
#define FF_COMPRESSION_DEFAULT -1
-#if LIBAVCODEC_VERSION_MAJOR < 53
+#if FF_API_USE_LPC
/**
* Sets whether to use LPC mode - used by FLAC encoder.
* - encoding: Set by user.