summaryrefslogtreecommitdiff
path: root/libavcodec/qsvenc_h264.c
diff options
context:
space:
mode:
authorLi, Zhong <zhong.li@intel.com>2017-11-27 11:19:57 -0500
committerMaxym Dmytrychenko <maxim.d33@gmail.com>2017-11-24 19:38:52 +0100
commitb843b343d8a3210ae37a2342b1904a5bd1e5fc6e (patch)
treed966fb6e1e734512d01a31b3cfbc2287600d3bd1 /libavcodec/qsvenc_h264.c
parent136e7cf64ce9e78de7158d6720539d51cb96b743 (diff)
downloadffmpeg-b843b343d8a3210ae37a2342b1904a5bd1e5fc6e.tar.gz
qsvenc: cavlc option is only available for h264
Moving option definition to h264 implementation and fixing command line defaults in order to properly respect cavlc input value Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
-rw-r--r--libavcodec/qsvenc_h264.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c
index a968dcfdf5..1365faccea 100644
--- a/libavcodec/qsvenc_h264.c
+++ b/libavcodec/qsvenc_h264.c
@@ -67,6 +67,7 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx)
static const AVOption options[] = {
QSV_COMMON_OPTS
+ { "cavlc", "Enable CAVLC", OFFSET(qsv.cavlc), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE },
{ "idr_interval", "Distance (in I-frames) between IDR frames", OFFSET(qsv.idr_interval), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE },
{ "single_sei_nal_unit", "Put all the SEI messages into one NALU", OFFSET(qsv.single_sei_nal_unit), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE },
{ "max_dec_frame_buffering", "Maximum number of frames buffered in the DPB", OFFSET(qsv.max_dec_frame_buffering), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, UINT16_MAX, VE },
@@ -106,7 +107,9 @@ static const AVCodecDefault qsv_enc_defaults[] = {
// same as the x264 default
{ "g", "250" },
{ "bf", "3" },
- { "coder", "ac" },
+#if FF_API_CODER_TYPE
+ { "coder", "-1" },
+#endif
{ "flags", "+cgop" },
#if FF_API_PRIVATE_OPT