Browse Source

* remaining part of John Ryland's patch

Originally committed as revision 1267 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Zdenek Kabelac 23 years ago
parent
commit
9a7b310d06
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      libavcodec/dsputil.c
  2. +2
    -1
      libavcodec/mpegvideo.c

+ 1
- 1
libavcodec/dsputil.c View File

@@ -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];


+ 2
- 1
libavcodec/mpegvideo.c View File

@@ -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;
}


Loading…
Cancel
Save