mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-15 19:55:08 +00:00
Snow: don't try to encode lossless with 9/7 wavelet, because it isn't lossless.
Originally committed as revision 5433 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d4b287ed36
commit
7374794a89
@ -4041,6 +4041,13 @@ static int encode_init(AVCodecContext *avctx)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(avctx->prediction_method == DWT_97
|
||||
&& (avctx->flags & CODEC_FLAG_QSCALE)
|
||||
&& avctx->global_quality == 0){
|
||||
av_log(avctx, AV_LOG_ERROR, "the 9/7 wavelet is incompatible with lossless mode\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
common_init(avctx);
|
||||
alloc_blocks(s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user