Skip to content

Commit c49ac0b

Browse files
committed
lavc/qsvenc: fix the hard code of height aligment checking
Signed-off-by: Zhong Li <zhong.li@intel.com>
1 parent b4ee0d4 commit c49ac0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libavcodec/qsvenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
11141114
}
11151115
} else {
11161116
/* make a copy if the input is not padded as libmfx requires */
1117-
if (frame->height & 31 || frame->linesize[0] & (q->width_align - 1)) {
1117+
if (frame->height & (q->height_align - 1) || frame->linesize[0] & (q->width_align - 1)) {
11181118
qf->frame->height = FFALIGN(frame->height, q->height_align);
11191119
qf->frame->width = FFALIGN(frame->width, q->width_align);
11201120

0 commit comments

Comments
 (0)