Mercurial > libavcodec.hg
diff motion_est.c @ 1011:3b7fcfb9c551 libavcodec
bugs
author | michaelni |
---|---|
date | Sat, 18 Jan 2003 01:37:42 +0000 |
parents | b2cf2a1d9a51 |
children | 5d4c95f323d0 |
line wrap: on
line diff
--- a/motion_est.c Fri Jan 17 22:40:00 2003 +0000 +++ b/motion_est.c Sat Jan 18 01:37:42 2003 +0000 @@ -1,7 +1,7 @@ /* * Motion estimation * Copyright (c) 2000,2001 Fabrice Bellard. - * Copyright (c) 2002 Michael Niedermayer + * Copyright (c) 2002-2003 Michael Niedermayer * * * This library is free software; you can redistribute it and/or @@ -313,6 +313,7 @@ case FF_CMP_DCT: case FF_CMP_SATD: case FF_CMP_SSE: + case FF_CMP_PSNR: return s->qscale*8; case FF_CMP_BIT: return 1; @@ -1030,7 +1031,7 @@ } #endif }else{ - s->scene_change_score+= 20; + s->scene_change_score+= s->qscale; mb_type|= MB_TYPE_INTRA; mx = 0; my = 0;