projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b287e
)
Snow: don't try to encode lossless with 9/7 wavelet, because it isn't lossless.
author
Loren Merritt
<lorenm@u.washington.edu>
Tue, 30 May 2006 19:45:12 +0000
(19:45 +0000)
committer
Loren Merritt
<lorenm@u.washington.edu>
Tue, 30 May 2006 19:45:12 +0000
(19:45 +0000)
Originally committed as revision 5433 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/snow.c
patch
|
blob
|
history
diff --git
a/libavcodec/snow.c
b/libavcodec/snow.c
index
59e2839
..
d20b960
100644
(file)
--- a/
libavcodec/snow.c
+++ b/
libavcodec/snow.c
@@
-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);