summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-11-19 14:30:04 +0100
committerDamiano Galassi <[email protected]>2020-11-19 14:30:04 +0100
commit831283d472674c2b95f7aa289d1a46c304936569 (patch)
tree5b31f62b3b0a50aa864b7c97cc866dc12840ddc2
parenta55facdbab633b57ae34f4557440888e7e5a0be2 (diff)
libhb: use av_get_pix_fmt_name to get the pixel format string.
-rw-r--r--libhb/cropscale.c2
-rw-r--r--libhb/decavcodec.c2
-rw-r--r--libhb/handbrake/common.h1
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]+))"