Revision b82cdc72 libavcodec/sh4/dsputil_sh4.c

View differences:

libavcodec/sh4/dsputil_sh4.c
105 105

  
106 106
void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx)
107 107
{
108
	const int idct_algo= avctx->idct_algo;
108 109
	dsputil_init_align(c,avctx);
109 110

  
110 111
	c->clear_blocks = clear_blocks_sh4;
111
	c->idct_put = idct_put;
112
	c->idct_add = idct_add;
113
	c->idct_permutation_type= FF_NO_IDCT_PERM; //FF_SIMPLE_IDCT_PERM; //FF_LIBMPEG2_IDCT_PERM;
112
	if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_SH4){        
113
		c->idct_put = idct_put;
114
		c->idct_add = idct_add;
115
		c->idct_permutation_type= FF_NO_IDCT_PERM; //FF_SIMPLE_IDCT_PERM; //FF_LIBMPEG2_IDCT_PERM;
116
	}
114 117
}

Also available in: Unified diff