comparison snow.c @ 3327:955096780e7c libavcodec

Snow: don't try to encode lossless with 9/7 wavelet, because it isn't lossless.
author lorenm
date Tue, 30 May 2006 19:45:12 +0000
parents fb245e797c5d
children 937f14bb0f23
comparison
equal deleted inserted replaced
3326:fb245e797c5d 3327:955096780e7c
4039 av_log(avctx, AV_LOG_ERROR, "this codec is under development, files encoded with it may not be decodable with future versions!!!\n" 4039 av_log(avctx, AV_LOG_ERROR, "this codec is under development, files encoded with it may not be decodable with future versions!!!\n"
4040 "use vstrict=-2 / -strict -2 to use it anyway\n"); 4040 "use vstrict=-2 / -strict -2 to use it anyway\n");
4041 return -1; 4041 return -1;
4042 } 4042 }
4043 4043
4044 if(avctx->prediction_method == DWT_97
4045 && (avctx->flags & CODEC_FLAG_QSCALE)
4046 && avctx->global_quality == 0){
4047 av_log(avctx, AV_LOG_ERROR, "the 9/7 wavelet is incompatible with lossless mode\n");
4048 return -1;
4049 }
4050
4044 common_init(avctx); 4051 common_init(avctx);
4045 alloc_blocks(s); 4052 alloc_blocks(s);
4046 4053
4047 s->version=0; 4054 s->version=0;
4048 4055