[Ffmpeg-cvslog] r5433 - trunk/libavcodec/snow.c

lorenm subversion
Tue May 30 21:45:12 CEST 2006


Author: lorenm
Date: Tue May 30 21:45:12 2006
New Revision: 5433

Modified:
   trunk/libavcodec/snow.c

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



Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	(original)
+++ trunk/libavcodec/snow.c	Tue May 30 21:45:12 2006
@@ -4041,6 +4041,13 @@
         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);
 




More information about the ffmpeg-cvslog mailing list