Mercurial > libavcodec.hg
diff mpeg12.c @ 718:16dab8296293 libavcodec
fixing custom quantizer matrix decoding
minor optimizations
author | michaelni |
---|---|
date | Wed, 02 Oct 2002 22:56:58 +0000 |
parents | 6cba3b6196f0 |
children | 585c163c225a |
line wrap: on
line diff
--- a/mpeg12.c Wed Oct 02 17:07:39 2002 +0000 +++ b/mpeg12.c Wed Oct 02 22:56:58 2002 +0000 @@ -1435,7 +1435,7 @@ if (get_bits1(&s->gb)) { for(i=0;i<64;i++) { v = get_bits(&s->gb, 8); - j = s->intra_scantable.permutated[i]; + j= s->idct_permutation[ ff_zigzag_direct[i] ]; s->intra_matrix[j] = v; s->chroma_intra_matrix[j] = v; } @@ -1443,7 +1443,7 @@ if (get_bits1(&s->gb)) { for(i=0;i<64;i++) { v = get_bits(&s->gb, 8); - j = s->intra_scantable.permutated[i]; + j= s->idct_permutation[ ff_zigzag_direct[i] ]; s->inter_matrix[j] = v; s->chroma_inter_matrix[j] = v; } @@ -1451,14 +1451,14 @@ if (get_bits1(&s->gb)) { for(i=0;i<64;i++) { v = get_bits(&s->gb, 8); - j = s->intra_scantable.permutated[i]; + j= s->idct_permutation[ ff_zigzag_direct[i] ]; s->chroma_intra_matrix[j] = v; } } if (get_bits1(&s->gb)) { for(i=0;i<64;i++) { v = get_bits(&s->gb, 8); - j = s->intra_scantable.permutated[i]; + j= s->idct_permutation[ ff_zigzag_direct[i] ]; s->chroma_inter_matrix[j] = v; } }