diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-10 22:01:41 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-18 21:19:27 +0400 |
commit | cbcfd7da4d1f5d43b0b9abb05d9b6fc4451cad0d (patch) | |
tree | ae32c7abf1d08834f637590142739a02fd2e58d9 /libavcodec/mpegvideo_enc.c | |
parent | 3d20260157cb65582cb547befe744b9cbfaeac1d (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.c | 2 |
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++){ |