summaryrefslogtreecommitdiff
path: root/libavcodec/motion_est.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-07 03:23:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-07 03:23:31 +0000
commite6a2ac3474986280dda041521229683f00f04759 (patch)
tree902e92e533171eda1ab3b6a433c3b6d3fd37cb79 /libavcodec/motion_est.c
parent2b647ac8c91c95e7f2a94f52e3561f09e6a99d48 (diff)
noise preserving sum of squares comparission function
Originally committed as revision 3204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/motion_est.c')
-rw-r--r--libavcodec/motion_est.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c
index b92b6dfad8..bee1e07f00 100644
--- a/libavcodec/motion_est.c
+++ b/libavcodec/motion_est.c
@@ -223,6 +223,7 @@ static inline int get_penalty_factor(MpegEncContext *s, int type){
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);