diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-22 07:24:28 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-22 07:24:28 +0000 |
commit | 9a7b310d06502c2af068b98bbaf23f8d6d3989e8 (patch) | |
tree | cd82823f796bcf90929989b4260b41308f0cd4c0 /libavcodec | |
parent | ae98a91509f364660ef309b6853f464da4eeca6f (diff) | |
download | ffmpeg-streaming-9a7b310d06502c2af068b98bbaf23f8d6d3989e8.zip ffmpeg-streaming-9a7b310d06502c2af068b98bbaf23f8d6d3989e8.tar.gz |
* remaining part of John Ryland's patch
Originally committed as revision 1267 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsputil.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 5952d92..a8e060b 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -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]; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 7f21f33..5e67ebd 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; } |