summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2021-02-20 15:30:41 -0500
committerBradley Sepos <[email protected]>2021-02-20 16:22:34 -0500
commit89a1bcacab67cbcebd47d7cfe747b5583e604813 (patch)
tree89df00cedc249dd2b9305a2a5e684248e5ecc5c6
parent5e1473c632322dd7d3ce76ae6dae07d59f6af92e (diff)
libhb: Replace hardcoded input pixel format for NV12 conversion.
-rw-r--r--libhb/encavcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 08e69362e..1ba1463a5 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -648,7 +648,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
{
pv->sws_context_to_nv12 = hb_sws_get_context(
job->width, job->height,
- AV_PIX_FMT_YUV420P,
+ context->pix_fmt,
job->width, job->height,
AV_PIX_FMT_NV12,
SWS_LANCZOS|SWS_ACCURATE_RND,