summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-01-28 20:19:07 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-01-28 21:00:59 +0100
commitf550583c00e231b587d8ef98451cfbb6b6561eb6 (patch)
treed6dec060bcf15afe98e4b4292a182806332675de
parent834e9fb0563956630e4d9bf61c9242ad134334da (diff)
downloadffmpeg-streaming-f550583c00e231b587d8ef98451cfbb6b6561eb6.zip
ffmpeg-streaming-f550583c00e231b587d8ef98451cfbb6b6561eb6.tar.gz
bfin: update VP3 idct
The block must be set to 0.
-rw-r--r--libavcodec/bfin/vp3_bfin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/bfin/vp3_bfin.c b/libavcodec/bfin/vp3_bfin.c
index 962d383..267918c 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);
}
OpenPOWER on IntegriCloud