mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/hwcontext_qsv: Fix the realign check for hwupload
Fix the aligned check in hwupload, input surface should be 16 aligned too. Partly fix #7830. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
parent
38c170d54c
commit
2d81acaa1a
|
@ -892,8 +892,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (src->height & 15 || src->linesize[0] & 15) {
|
||||||
if (src->height & 16 || src->linesize[0] & 16) {
|
|
||||||
realigned = 1;
|
realigned = 1;
|
||||||
memset(&tmp_frame, 0, sizeof(tmp_frame));
|
memset(&tmp_frame, 0, sizeof(tmp_frame));
|
||||||
tmp_frame.format = src->format;
|
tmp_frame.format = src->format;
|
||||||
|
|
Loading…
Reference in New Issue