Merge commit 'b4987f72197e0c62cf2633bf835a9c32d2a445ae'
[ffmpeg.git] / libavcodec / mpegvideo_enc.c
index cf873b1..7fa5687 100644 (file)
@@ -4463,7 +4463,7 @@ int ff_dct_quantize_c(MpegEncContext *s,
     *overflow= s->max_qcoeff < max; //overflow might have happened
 
     /* we need this permutation so that we correct the IDCT, we only permute the !=0 elements */
-    if (s->idsp.idct_permutation_type != FF_NO_IDCT_PERM)
+    if (s->idsp.perm_type != FF_IDCT_PERM_NONE)
         ff_block_permute(block, s->idsp.idct_permutation,
                          scantable, last_non_zero);