avcodec/mpegvideo: Use intra_scantable in dct_unquantize_h263_intra_c()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Jun 2017 22:37:40 +0000 (00:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Jun 2017 00:25:23 +0000 (02:25 +0200)
Reviewed-by: James Darnley <jdarnley@obe.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo.c

index 63a30b9..e29558b 100644 (file)
@@ -225,7 +225,7 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s,
     if(s->ac_pred)
         nCoeffs=63;
     else
-        nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ];
+        nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ];
 
     for(i=1; i<=nCoeffs; i++) {
         level = block[i];