lavc/qsvenc_jpeg: set a default quality master github/master gitlab/master videolan/master
authorZhong Li <zhong.li@intel.com>
Thu, 11 Oct 2018 09:26:13 +0000 (17:26 +0800)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 13 Oct 2018 13:57:06 +0000 (15:57 +0200)
Keep alignment with vaapi mjpeg encoder.

Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/qsvenc_jpeg.c

index 7465bb9..bbfd009 100644 (file)
@@ -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",
 };