Hi
On Tue, Jan 07, 2025 at 12:08:39AM +0100, Marton Balint wrote:
All elements should be within 1-255.
---
libavcodec/encode.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
this breaks:
./ffmpeg -i lena.pnm -qscale 4 -intra_matrix
10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
-chroma_intra_matrix
400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400
-bitexact custommatrix10,400.jpg
I have not double checked the spec, but the resulting file worked fine
before the patch