1000l for iive
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Mar 2004 20:54:04 +0000 (20:54 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Mar 2004 20:54:04 +0000 (20:54 +0000)
Originally committed as revision 2916 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 2b5d074..4d2943a 100644 (file)
@@ -362,7 +362,8 @@ int i;
 
     s->y_dc_scale_table=
     s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
-    
+
+    if(!s->encoding)    
     for(i=0;i<64;i++)
        s->dsp.idct_permutation[i]=i;
 }