[FFmpeg-devel] [PATCH] lavc/qsvenc: fix the hard code of height aligment checking
Zhong Li
zhong.li at intel.com
Wed Apr 4 13:07:58 EEST 2018
Signed-off-by: Zhong Li <zhong.li at intel.com>
---
libavcodec/qsvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index afb953e..573c11e 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1051,7 +1051,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
}
} else {
/* make a copy if the input is not padded as libmfx requires */
- 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)) {
qf->frame->height = FFALIGN(frame->height, q->height_align);
qf->frame->width = FFALIGN(frame->width, q->width_align);
--
1.8.3.1
More information about the ffmpeg-devel
mailing list