aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2008-12-10 21:35:17 +0000
committerLoren Merritt <lorenm@u.washington.edu>2008-12-10 21:35:17 +0000
commit5fecfb7d58a12baf326e99f2d071060f2638d93c (patch)
treec133296ab20628e90ac488b2d2e265117aaff769 /libavcodec/mjpegdec.c
parent5fac277602ebab5990c4d20342a4e55bb7c43b93 (diff)
downloadffmpeg-5fecfb7d58a12baf326e99f2d071060f2638d93c.tar.gz
clear_block mmx
Originally committed as revision 16045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 54beb76dae..5dcdb73976 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -444,7 +444,7 @@ static int decode_dc_progressive(MJpegDecodeContext *s, DCTELEM *block, int comp
int dc_index, int16_t *quant_matrix, int Al)
{
int val;
- memset(block, 0, 64*sizeof(DCTELEM));
+ s->dsp.clear_block(block);
val = mjpeg_decode_dc(s, dc_index);
if (val == 0xffff) {
av_log(s->avctx, AV_LOG_ERROR, "error dc\n");
@@ -800,7 +800,7 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, i
if(s->interlaced && s->bottom_field)
ptr += linesize[c] >> 1;
if(!s->progressive) {
- memset(s->block, 0, sizeof(s->block));
+ s->dsp.clear_block(s->block);
if(decode_block(s, s->block, i,
s->dc_index[i], s->ac_index[i],
s->quant_matrixes[ s->quant_index[c] ]) < 0) {