mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
lavc/qsvenc: use the right alignment instead of hard coded value
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
2b0fe52967
commit
cfdfd6aa72
@ -1909,7 +1909,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
|
||||
} else {
|
||||
/* make a copy if the input is not padded as libmfx requires */
|
||||
/* and to make allocation continious for data[0]/data[1] */
|
||||
if ((frame->height & 31 || frame->linesize[0] & (q->width_align - 1)) ||
|
||||
if ((frame->height & (q->height_align - 1) || frame->linesize[0] & (q->width_align - 1)) ||
|
||||
(frame->data[1] - frame->data[0] != frame->linesize[0] * FFALIGN(qf->frame->height, q->height_align))) {
|
||||
int tmp_w, tmp_h;
|
||||
qf->frame->height = tmp_h = FFALIGN(frame->height, q->height_align);
|
||||
|
Loading…
Reference in New Issue
Block a user