diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 06:46:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 12:29:20 +0200 |
commit | 2aaf32f52f25ac7b3b18606a00953c0aa8e2e7bd (patch) | |
tree | 57760259017c37460e843bc2a35b50856981754b /libavcodec/bfin | |
parent | 73a528748296c4b2c807d6610d873f97fe7fc428 (diff) | |
download | ffmpeg-streaming-2aaf32f52f25ac7b3b18606a00953c0aa8e2e7bd.zip ffmpeg-streaming-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/bfin')
-rw-r--r-- | libavcodec/bfin/mpegvideo_bfin.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/bfin/mpegvideo_bfin.c b/libavcodec/bfin/mpegvideo_bfin.c index 0373e22..996290a 100644 --- a/libavcodec/bfin/mpegvideo_bfin.c +++ b/libavcodec/bfin/mpegvideo_bfin.c @@ -61,8 +61,13 @@ static int dct_quantize_bfin (MpegEncContext *s, dc = block[0] = (block[0] + (q >> 1)) / q; start_i = 1; last_non_zero = 0; - bias = s->q_intra_matrix16[qscale][1]; - qmat = s->q_intra_matrix16[qscale][0]; + if(n<4){ + bias = s->q_intra_matrix16[qscale][1]; + qmat = s->q_intra_matrix16[qscale][0]; + }else{ + bias = s->q_chroma_intra_matrix16[qscale][1]; + qmat = s->q_chroma_intra_matrix16[qscale][0]; + } } else { start_i = 0; |