diff options
author | agalin89 <[email protected]> | 2020-11-28 15:59:44 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2020-11-29 11:56:57 +0000 |
commit | 35f87a4ba017f2174f8d21281fddcf8999491d9e (patch) | |
tree | baa3e15574658c0806a9cea4625304cfbeda1712 /libhb | |
parent | 938484b1198996e2cdf74fa385e01c11a7539297 (diff) |
qsv: fixed corrupted images in scale_qsv filter
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/qsv_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 7997f9746..a07fe459c 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -3036,6 +3036,8 @@ hb_buffer_t* hb_qsv_copy_frame(hb_job_t *job, AVFrame *frame, int is_vpp) mfxHDLPair* input_pair = (mfxHDLPair*)input_surface->Data.MemId; // copy all surface fields *output_surface = *input_surface; + output_surface->Info.CropW = frame->width; + output_surface->Info.CropH = frame->height; if (hb_qsv_hw_filters_are_enabled(job)) { output_surface->Data.MemId = mid->handle_pair; @@ -3077,6 +3079,8 @@ hb_buffer_t* hb_qsv_copy_frame(hb_job_t *job, AVFrame *frame, int is_vpp) int output_index = (int)(intptr_t)mid->handle_pair->second == MFX_INFINITE ? 0 : (int)(intptr_t)mid->handle_pair->second; // copy all surface fields *output_surface = *input_surface; + output_surface->Info.CropW = frame->width; + output_surface->Info.CropH = frame->height; if (hb_qsv_hw_filters_are_enabled(job)) { // Make sure that we pass handle_pair to scale_qsv |