From 831283d472674c2b95f7aa289d1a46c304936569 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 19 Nov 2020 14:30:04 +0100 Subject: libhb: use av_get_pix_fmt_name to get the pixel format string. --- libhb/cropscale.c | 2 +- libhb/decavcodec.c | 2 +- libhb/handbrake/common.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libhb/cropscale.c b/libhb/cropscale.c index 34721a18e..8a435c6db 100644 --- a/libhb/cropscale.c +++ b/libhb/cropscale.c @@ -172,7 +172,7 @@ static int crop_scale_init(hb_filter_object_t * filter, hb_filter_init_t * init) if (!hb_qsv_hw_filters_are_enabled(init->job)) #endif { - hb_dict_set(avsettings, "pix_fmts", hb_value_string(hb_get_format_name(init->pix_fmt))); + hb_dict_set(avsettings, "pix_fmts", hb_value_string(av_get_pix_fmt_name(init->pix_fmt))); hb_dict_set(avfilter, "format", avsettings); hb_value_array_append(avfilters, avfilter); } diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 50d706ec0..b59283252 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1190,7 +1190,7 @@ int reinit_video_filters(hb_work_private_t * pv) hb_avfilter_append_dict(filters, "scale", settings); settings = hb_dict_init(); - hb_dict_set(settings, "pix_fmts", hb_value_string(hb_get_format_name(pix_fmt))); + hb_dict_set(settings, "pix_fmts", hb_value_string(av_get_pix_fmt_name(pix_fmt))); hb_avfilter_append_dict(filters, "format", settings); } } diff --git a/libhb/handbrake/common.h b/libhb/handbrake/common.h index 282a8a790..06fcf5583 100644 --- a/libhb/handbrake/common.h +++ b/libhb/handbrake/common.h @@ -1449,7 +1449,6 @@ int hb_output_color_prim(hb_job_t * job); int hb_output_color_transfer(hb_job_t * job); int hb_output_color_matrix(hb_job_t * job); -const char * hb_get_format_name(int format); int hb_get_bit_depth(int format); #define HB_NEG_FLOAT_REG "(([-])?(([0-9]+([.,][0-9]+)?)|([.,][0-9]+))" -- cgit v1.2.3