Commit 1219e9c2 authored by kabi's avatar kabi

* remaining part of John Ryland's patch


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1267 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 40acdc59
......@@ -1322,7 +1322,7 @@ void ff_block_permute(INT16 *block, UINT8 *permutation, const UINT8 *scantable,
INT16 temp[64];
if(last<=0) return;
if(permutation[1]==1) return; //FIXME its ok but not clean and might fail for some perms
//if(permutation[1]==1) return; //FIXME its ok but not clean and might fail for some perms
for(i=0; i<=last; i++){
const int j= scantable[i];
......
......@@ -3074,7 +3074,8 @@ static int dct_quantize_c(MpegEncContext *s,
*overflow= s->max_qcoeff < max; //overflow might have happend
/* we need this permutation so that we correct the IDCT, we only permute the !=0 elements */
ff_block_permute(block, s->idct_permutation, scantable, last_non_zero);
if (s->idct_permutation_type != FF_NO_IDCT_PERM)
ff_block_permute(block, s->idct_permutation, scantable, last_non_zero);
return last_non_zero;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment