diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-11-24 23:26:23 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-11-25 00:31:36 +0400 |
commit | 8b7412fe4e0821ec66eb75da0e586d977b93652c (patch) | |
tree | d083d1fbc8ce1c8eb3e06dd24e635f69267b3433 /libavcodec/tiffenc.c | |
parent | f7f1835258595596b7493d3add8c6a2f7f2cdcde (diff) |
tiffenc: deprecate using compression_level
Diffstat (limited to 'libavcodec/tiffenc.c')
-rw-r--r-- | libavcodec/tiffenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 7b71481a74..3b2b82991b 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -231,6 +231,11 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf, p->key_frame = 1; avctx->coded_frame= &s->picture; +#if FF_API_TIFFENC_COMPLEVEL + if (avctx->compression_level != FF_COMPRESSION_DEFAULT) + av_log(avctx, AV_LOG_WARNING, "Using compression_level to set compression " + "algorithm is deprecated. Please use the compression_algo private " + "option instead.\n"); if (avctx->compression_level == 0) { s->compr = TIFF_RAW; } else if(avctx->compression_level == 2) { @@ -240,6 +245,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf, s->compr = TIFF_DEFLATE; #endif } +#endif s->width = avctx->width; s->height = avctx->height; |