mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -892,8 +892,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
||||
if (src->height & 16 || src->linesize[0] & 16) {
|
||||
if (src->height & 15 || src->linesize[0] & 15) {
|
||||
realigned = 1;
|
||||
memset(&tmp_frame, 0, sizeof(tmp_frame));
|
||||
tmp_frame.format = src->format;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue