qsvenc: Make sure the interlaced encoding works
authorAaron Levinson <alevinsn@aracnet.com>
Sat, 6 May 2017 04:31:30 +0000 (21:31 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 9 May 2017 01:22:14 +0000 (03:22 +0200)
commitae5b67ee64bec00c52881ff8426fddaf477341c1
treec0796b3abec3a3ca1dbff05179118670e2bb8523
parentdd8319767e1674d030b5d803c43029e67db5efb8
qsvenc: Make sure the interlaced encoding works

Purpose: qsvenc: make sure that interlaced encoding works.  Also,
reduce the vertical alignment constraint when possible to reduce
memory usage.

Note: Most of this code used to be present in ffmpeg and was
eliminated in revision 1f26a23 on Oct. 31, 2016 (qsv: Merge libav
implementation, at
https://github.com/FFmpeg/FFmpeg/commit/1f26a231bb065276cd80ce02957c759f3197
edfa#diff-7d84a34d58597bb7aa4b8239dca1f9f8).  Already applied to
libav.

Reviewed-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 8fd8f91e47f33cd82371a97ac81afc476144964f)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Aaron Levinson <alevinsn@aracnet.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qsvenc.c
libavcodec/qsvenc.h