aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2018-10-11 17:26:13 +0800
committerZhong Li <zhong.li@intel.com>2018-10-23 19:52:47 +0800
commit92c25963e8b68c47055b813334eaf76599936a90 (patch)
treea70a26503c40469961ee97c807e9295a2235cb51 /libavcodec
parent0e3d7d845d9b4596c0dac1f6e99c493af07308ae (diff)
downloadffmpeg-92c25963e8b68c47055b813334eaf76599936a90.tar.gz
lavc/qsvenc_jpeg: set a default quality
Keep alignment with vaapi mjpeg encoder. Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsvenc_jpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index 01c1012504..1e7785a826 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec/qsvenc_jpeg.c
@@ -75,6 +75,11 @@ static const AVClass class = {
.version = LIBAVUTIL_VERSION_INT,
};
+static const AVCodecDefault qsv_enc_defaults[] = {
+ { "global_quality", "80" },
+ { NULL },
+};
+
AVCodec ff_mjpeg_qsv_encoder = {
.name = "mjpeg_qsv",
.long_name = NULL_IF_CONFIG_SMALL("MJPEG (Intel Quick Sync Video acceleration)"),
@@ -89,5 +94,6 @@ AVCodec ff_mjpeg_qsv_encoder = {
AV_PIX_FMT_QSV,
AV_PIX_FMT_NONE },
.priv_class = &class,
+ .defaults = qsv_enc_defaults,
.wrapper_name = "qsv",
};