summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-10 19:01:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-18 18:19:27 +0100
commitcbcfd7da4d1f5d43b0b9abb05d9b6fc4451cad0d (patch)
treeae32c7abf1d08834f637590142739a02fd2e58d9 /libavcodec/mpegvideo_enc.c
parent3d20260157cb65582cb547befe744b9cbfaeac1d (diff)
avcodec: support setting the chroma intra matrix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r--libavcodec/mpegvideo_enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 54ef15f5e7..bb49822ce2 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3511,6 +3511,8 @@ static int encode_picture(MpegEncContext *s, int picture_number)
chroma_matrix =
luma_matrix = s->avctx->intra_matrix;
}
+ if (s->avctx->chroma_intra_matrix)
+ chroma_matrix = s->avctx->chroma_intra_matrix;
/* for mjpeg, we do include qscale in the matrix */
for(i=1;i<64;i++){