Commit c2dee5b2 authored by lorenm's avatar lorenm

Snow: don't try to encode lossless with 9/7 wavelet, because it isn't lossless.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5897587f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment