1
0
Fork 0

avcodec/proresenc_kostya: fix chroma quantisation matrix in frame header

Most of the time the quantisation matrices are the same, it only matters
with the proxy profile.
This commit is contained in:
Clément Bœsch 2023-12-11 01:23:12 +01:00
parent 631fa19ee0
commit cbee015867
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bytestream_put_byte(&buf, ctx->quant_mat[i]);
// chroma quantisation matrix
for (i = 0; i < 64; i++)
bytestream_put_byte(&buf, ctx->quant_mat[i]);
bytestream_put_byte(&buf, ctx->quant_chroma_mat[i]);
} else {
bytestream_put_byte (&buf, 0x00); // matrix flags - default matrices are used
}