Mercurial > libavcodec.hg
changeset 8292:d77ee820a5f1 libavcodec
use dsp clear_block
author | bcoudurier |
---|---|
date | Thu, 11 Dec 2008 01:15:00 +0000 |
parents | eb7667dbb9e0 |
children | 523c99682e03 |
files | dnxhdenc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dnxhdenc.c Thu Dec 11 01:14:32 2008 +0000 +++ b/dnxhdenc.c Thu Dec 11 01:15:00 2008 +0000 @@ -424,8 +424,10 @@ 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);