diff motion_est.c @ 2066:4bfb146e701b libavcodec

nsse weight
author michael
date Mon, 07 Jun 2004 17:30:02 +0000
parents 9e4bebc39ade
children c200977cdf78
line wrap: on
line diff
--- a/motion_est.c	Mon Jun 07 03:23:31 2004 +0000
+++ b/motion_est.c	Mon Jun 07 17:30:02 2004 +0000
@@ -223,7 +223,6 @@
     switch(type&0xFF){
     default:
     case FF_CMP_SAD:
-    case FF_CMP_NSSE:
         return s->lambda>>FF_LAMBDA_SHIFT;
     case FF_CMP_DCT:
         return (3*s->lambda)>>(FF_LAMBDA_SHIFT+1);
@@ -232,6 +231,7 @@
     case FF_CMP_RD:
     case FF_CMP_PSNR:
     case FF_CMP_SSE:
+    case FF_CMP_NSSE:
         return s->lambda2>>FF_LAMBDA_SHIFT;
     case FF_CMP_BIT:
         return 1;