diff options
author | John Stebbins <[email protected]> | 2019-04-03 12:20:30 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-04-08 07:44:09 -0600 |
commit | 460fdf4f39b87969954c338aabd80bac6470023a (patch) | |
tree | 1190c0f8dd95e6ce4d4c51bcf957bd54a20d5851 /libhb | |
parent | 3953491e397b1f77b01cfe6719b1e00b50b772e7 (diff) |
cropscale: force output pixfmt to YUV420P
It appears some color prim/tran/matrix settings result in high bit
depth output of the scale filter.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/cropscale.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/cropscale.c b/libhb/cropscale.c index 38d8560e9..09af92e09 100644 --- a/libhb/cropscale.c +++ b/libhb/cropscale.c @@ -139,6 +139,15 @@ static int crop_scale_init(hb_filter_object_t * filter, hb_filter_init_t * init) hb_dict_set(avfilter, "scale", avsettings); hb_value_array_append(avfilters, avfilter); + avfilter = hb_dict_init(); + avsettings = hb_dict_init(); + + // TODO: Support other pix formats + // Force output to YUV420P for until other formats are supported + hb_dict_set(avsettings, "pix_fmts", hb_value_string("yuv420p")); + hb_dict_set(avfilter, "format", avsettings); + hb_value_array_append(avfilters, avfilter); + init->crop[0] = top; init->crop[1] = bottom; init->crop[2] = left; |