diff options
author | Damiano Galassi <[email protected]> | 2021-01-30 21:34:30 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-30 21:34:30 +0100 |
commit | a5c06736044ddad908d6ee730babf8335ac1342b (patch) | |
tree | 113796143ee8b40c5ec36fbd6ed58f931adbefe1 | |
parent | 047b684310107ec84d16bb767a9345c7c7fe1afe (diff) |
sync: tag the generated black buffer with the color code points, to avoid tripping the colorspace filter.
-rw-r--r-- | libhb/sync.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index dba2e706d..b8ac292c5 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -382,7 +382,11 @@ static hb_buffer_t * CreateBlackBuf( sync_stream_t * stream, linesizes[i] = buf->plane[i].stride; } av_image_fill_black(planes, linesizes, stream->common->job->pix_fmt, - AVCOL_RANGE_JPEG, buf->f.width, buf->f.height); + stream->common->job->color_range, buf->f.width, buf->f.height); + buf->f.color_prim = stream->common->job->title->color_prim; + buf->f.color_transfer = stream->common->job->title->color_transfer; + buf->f.color_matrix = stream->common->job->title->color_matrix; + buf->f.color_range = stream->common->job->color_range; } else { |