diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-12-11 01:15:00 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-12-11 01:15:00 +0000 |
commit | 049a6c8b321d1fe917c08e828ec46cface740d79 (patch) | |
tree | b0f810e678f867cb38afc5a478f06208e0d05b74 /libavcodec/dnxhdenc.c | |
parent | af5e7fc9b9344007f76564d576d1748886099ffe (diff) | |
download | ffmpeg-049a6c8b321d1fe917c08e828ec46cface740d79.tar.gz |
use dsp clear_block
Originally committed as revision 16049 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 534b850b35..f338b291ea 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -424,8 +424,10 @@ static av_always_inline void dnxhd_get_blocks(DNXHDEncContext *ctx, int mb_x, in dnxhd_get_pixels_4x8(ctx->blocks[5], ptr_y + ctx->dct_y_offset + 8, ctx->m.linesize); dnxhd_get_pixels_4x8(ctx->blocks[6], ptr_u + ctx->dct_uv_offset , ctx->m.uvlinesize); dnxhd_get_pixels_4x8(ctx->blocks[7], ptr_v + ctx->dct_uv_offset , ctx->m.uvlinesize); - } else - memset(ctx->blocks[4], 0, 4*64*sizeof(DCTELEM)); + } else { + dsp->clear_block(ctx->blocks[4]); dsp->clear_block(ctx->blocks[5]); + dsp->clear_block(ctx->blocks[6]); dsp->clear_block(ctx->blocks[7]); + } } else { dsp->get_pixels(ctx->blocks[4], ptr_y + ctx->dct_y_offset , ctx->m.linesize); dsp->get_pixels(ctx->blocks[5], ptr_y + ctx->dct_y_offset + 8, ctx->m.linesize); |