diff options
author | Arpi <arpi@thot.banki.hu> | 2001-10-14 17:11:17 +0000 |
---|---|---|
committer | Arpi <arpi@thot.banki.hu> | 2001-10-14 17:11:17 +0000 |
commit | 9ae0a66da12523b31b19ba85419e37cc7cd627ee (patch) | |
tree | c498e7fe7e493af216f1b67bf2d7712aa90f7582 | |
parent | e939e1c35ba0e6245829f7c523306bfa90be11bc (diff) | |
download | ffmpeg-9ae0a66da12523b31b19ba85419e37cc7cd627ee.tar.gz |
c++ fix
Originally committed as revision 2196 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r-- | postproc/postprocess.c | 3 | ||||
-rw-r--r-- | postproc/postprocess_template.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/postproc/postprocess.c b/postproc/postprocess.c index 5c13e53f19..04e73cc4c6 100644 --- a/postproc/postprocess.c +++ b/postproc/postprocess.c @@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP int y; for(y=0; y<BLOCK_SIZE; y++) { + const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]); + dst[0] = src[0]; dst[1] = src[1]; dst[2] = src[2]; @@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP dst[6] = src[6]; dst[7] = src[7]; - const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]); if(ABS(middleEnergy) < 8*QP) { const int q=(src[3] - src[4])/2; diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c index 5c13e53f19..04e73cc4c6 100644 --- a/postproc/postprocess_template.c +++ b/postproc/postprocess_template.c @@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP int y; for(y=0; y<BLOCK_SIZE; y++) { + const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]); + dst[0] = src[0]; dst[1] = src[1]; dst[2] = src[2]; @@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP dst[6] = src[6]; dst[7] = src[7]; - const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]); if(ABS(middleEnergy) < 8*QP) { const int q=(src[3] - src[4])/2; |