diff options
author | Damiano Galassi <[email protected]> | 2021-01-23 18:56:36 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-23 19:00:27 +0100 |
commit | ca260f666f0663997f72786a03a50f01ec7dc09f (patch) | |
tree | 44b4b1458903d77772a0b468108e1580ce433b90 /libhb/decavcodec.c | |
parent | 581f60136ad0c68b8849cd0b6f9331cf1283cb5c (diff) |
libhb: re-implement colorspace filter with zimg, add tonemap, and expose the colorspace filter in the cli
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index b59283252..1e4d94d38 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -962,6 +962,14 @@ static hb_buffer_t *copy_frame( hb_work_private_t *pv ) out = hb_avframe_to_video_buffer(pv->frame, (AVRational){1,1}); } + // Make sure every frame is tagged. + if (out->f.color_prim == HB_COLR_PRI_UNDEF || out->f.color_transfer == HB_COLR_TRA_UNDEF || out->f.color_matrix == HB_COLR_MAT_UNDEF) + { + out->f.color_prim = pv->title->color_prim; + out->f.color_transfer = pv->title->color_transfer; + out->f.color_matrix = pv->title->color_matrix; + } + if (pv->frame->pts != AV_NOPTS_VALUE) { reordered = reordered_hash_rem(pv, pv->frame->pts); |