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
This commit is contained in:
Aurelien Jacobs
2010-09-30 20:31:42 +00:00
parent ab3efd0077
commit 0743de4ffd
3 changed files with 6 additions and 3 deletions

View File

@ -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;