diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-06-02 22:24:09 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-06-02 22:24:09 +0300 |
commit | 0ea0ccc4ffd573739aeb9e67e83dbfb3604887c7 (patch) | |
tree | e6cfaca81c2b4b640418ee7422e8c9c5a3b69f5c /source/blender/imbuf | |
parent | 81366b7d2c548f40843c7f87842710e3a2019136 (diff) |
FFmpeg: Fix H264 lossless render not lossless
While encoder parameters for lossless encoding are set correctly,
output is not lossless due to pixel format being set to
`AV_PIX_FMT_YUV420P` which is inherently lossy due to chroma subsampling.
This was reported in T61569 and was merged to T57397, but there were
2 bugs - one for encoding and one for decoding.
Set pixel format to `AV_PIX_FMT_YUV444P` when rendering lossless H264
files. This format isn't available in `codec->pix_fmts[0]` and it looks,
that it has to be hard-coded.
Reviewed By: sergey
Differential Revision: D11458
Diffstat (limited to 'source/blender/imbuf')
0 files changed, 0 insertions, 0 deletions