diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 13:40:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 13:40:44 +0100 |
commit | 8265c0f43a441f2ec8eb31b6047297d8f18ebcda (patch) | |
tree | ecfc80d8af81d3aea37b83724582f785defe29d9 | |
parent | 8a6ae87b9915ad82de4d20a056fe67bc17e16de7 (diff) | |
parent | f550583c00e231b587d8ef98451cfbb6b6561eb6 (diff) | |
download | ffmpeg-8265c0f43a441f2ec8eb31b6047297d8f18ebcda.tar.gz |
Merge commit 'f550583c00e231b587d8ef98451cfbb6b6561eb6'
* commit 'f550583c00e231b587d8ef98451cfbb6b6561eb6':
bfin: update VP3 idct
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/bfin/vp3_bfin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/bfin/vp3_bfin.c b/libavcodec/bfin/vp3_bfin.c index 06d3443a2f..b6d5d6744c 100644 --- a/libavcodec/bfin/vp3_bfin.c +++ b/libavcodec/bfin/vp3_bfin.c @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <string.h> + #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" #include "dsputil_bfin.h" @@ -33,6 +35,8 @@ void ff_bfin_vp3_idct_put (uint8_t *dest, int line_size, int16_t *block) for (i=0;i<8;i++) for (j=0;j<8;j++) dest[line_size*i+j]=cm[block[i*8+j]]; + + memset(block, 0, 128); } /* Inter iDCT */ @@ -40,4 +44,6 @@ void ff_bfin_vp3_idct_add (uint8_t *dest, int line_size, int16_t *block) { ff_bfin_vp3_idct (block); ff_bfin_add_pixels_clamped (block, dest, line_size); + + memset(block, 0, 128); } |