mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
lavc/qsvenc: enable hevc coding options configuration
Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
parent
6f9d7c556d
commit
c745bedd18
@ -629,9 +629,10 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// the HEVC encoder plugin currently fails if coding options
|
// The HEVC encoder plugin currently fails with some old libmfx version if coding options
|
||||||
// are provided
|
// are provided. Can't find the extract libmfx version which fixed it, just enable it from
|
||||||
if (avctx->codec_id != AV_CODEC_ID_HEVC) {
|
// V1.28 in order to keep compatibility security.
|
||||||
|
if ((avctx->codec_id != AV_CODEC_ID_HEVC) || QSV_RUNTIME_VERSION_ATLEAST(q->ver, 1, 28)) {
|
||||||
q->extco.Header.BufferId = MFX_EXTBUFF_CODING_OPTION;
|
q->extco.Header.BufferId = MFX_EXTBUFF_CODING_OPTION;
|
||||||
q->extco.Header.BufferSz = sizeof(q->extco);
|
q->extco.Header.BufferSz = sizeof(q->extco);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user