diff options
Diffstat (limited to 'libhb/decmpeg2.c')
-rw-r--r-- | libhb/decmpeg2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index 63f2ebb40..3beef06d1 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -291,10 +291,9 @@ static hb_buffer_t *hb_copy_frame( hb_job_t *job, int width, int height, memcpy( in.data[1], u, src_wh >> 2 ); memcpy( in.data[2], v, src_wh >> 2 ); } - struct SwsContext *context = sws_getContext( width, height, pixfmt, + struct SwsContext *context = hb_sws_get_context( width, height, pixfmt, dst_w, dst_h, PIX_FMT_YUV420P, - SWS_LANCZOS|SWS_ACCURATE_RND, - NULL, NULL, NULL ); + SWS_LANCZOS|SWS_ACCURATE_RND); sws_scale( context, in.data, in.linesize, 0, height, out.data, out.linesize ); sws_freeContext( context ); |