aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 06:46:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 12:29:20 +0200
commit2aaf32f52f25ac7b3b18606a00953c0aa8e2e7bd (patch)
tree57760259017c37460e843bc2a35b50856981754b /libavcodec/ppc
parent73a528748296c4b2c807d6610d873f97fe7fc428 (diff)
downloadffmpeg-2aaf32f52f25ac7b3b18606a00953c0aa8e2e7bd.tar.gz
mpegvideo: support encoding with chroma intra tables that differ from luma.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/mpegvideo_altivec.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index 465971653d..0ba532ec26 100644
--- a/libavcodec/ppc/mpegvideo_altivec.c
+++ b/libavcodec/ppc/mpegvideo_altivec.c
@@ -267,8 +267,13 @@ static int dct_quantize_altivec(MpegEncContext* s,
baseVector = vec_cts(vec_splat(row0, 0), 0);
vec_ste(baseVector, 0, &oldBaseValue);
- qmat = (vector signed int*)s->q_intra_matrix[qscale];
- biasAddr = &(s->intra_quant_bias);
+ if(n<4){
+ qmat = (vector signed int*)s->q_intra_matrix[qscale];
+ biasAddr = &(s->intra_quant_bias);
+ }else{
+ qmat = (vector signed int*)s->q_chroma_intra_matrix[qscale];
+ biasAddr = &(s->intra_quant_bias);
+ }
} else {
qmat = (vector signed int*)s->q_inter_matrix[qscale];
biasAddr = &(s->inter_quant_bias);