WIP: Video: 10/12 BPP and HDR video output support #120033

Draft
Aras Pranckevicius wants to merge 5 commits from aras_p/blender:ffmpeg_hdr into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 35db26e7be - Show all commits

View File

@ -454,10 +454,10 @@ static AVFrame *generate_video_frame(FFMpegContext *context, const ImBuf *image)
const uint8_t *src = pixels + linesize_src * y;
# if ENDIAN_ORDER == L_ENDIAN
memcpy(target, src, linesize);
memcpy(target, src, linesize_src);
# elif ENDIAN_ORDER == B_ENDIAN
const uint8_t *end = src + linesize;
const uint8_t *end = src + linesize_src;
while (src != end) {
target[3] = src[0];
target[2] = src[1];