Commit deefca02 authored by Zhong Li's avatar Zhong Li Committed by Luca Barbato

qsvenc: add the Access Unit Delimiter NAL Unit support

Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 3d6e76b9
......@@ -600,6 +600,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (q->recovery_point_sei >= 0)
q->extco.RecoveryPointSEI = q->recovery_point_sei ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF;
q->extco.MaxDecFrameBuffering = q->max_dec_frame_buffering;
q->extco.AUDelimiter = q->aud ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF;
}
q->extparam_internal[q->nb_extparam_internal++] = (mfxExtBuffer *)&q->extco;
......
......@@ -137,6 +137,8 @@ typedef struct QSVEncContext {
int max_frame_size;
int max_slice_size;
int aud;
int single_sei_nal_unit;
int max_dec_frame_buffering;
int trellis;
......
......@@ -91,6 +91,8 @@ static const AVOption options[] = {
{ "main" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_PROFILE_AVC_MAIN }, INT_MIN, INT_MAX, VE, "profile" },
{ "high" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_PROFILE_AVC_HIGH }, INT_MIN, INT_MAX, VE, "profile" },
{ "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE},
{ NULL },
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment