av1enc: fix werror build with clang

../subprojects/gst-plugins-bad/ext/aom/gstav1enc.c:415:34: warning: implicit conversion from enumeration type 'GstAV1EncEndUsageMode' to different enumeration type 'enum aom_rc_mode' [-Wenum-conversion]
  av1enc->aom_cfg.rc_end_usage = DEFAULT_END_USAGE;
                               ~ ^~~~~~~~~~~~~~~~~
../subprojects/gst-plugins-bad/ext/aom/gstav1enc.c:162:41: note: expanded from macro 'DEFAULT_END_USAGE'
#define DEFAULT_END_USAGE               GST_AV1_ENC_END_USAGE_VBR
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Matthew Waters 2019-08-26 22:17:57 +10:00
parent fa842f2156
commit 3cb01699d4

View file

@ -412,7 +412,7 @@ gst_av1_enc_init (GstAV1Enc * av1enc)
av1enc->aom_cfg.rc_superres_kf_denominator = DEFAULT_SUPERRES_KF_DENOMINATOR;
av1enc->aom_cfg.rc_superres_qthresh = DEFAULT_SUPERRES_QTHRESH;
av1enc->aom_cfg.rc_superres_kf_qthresh = DEFAULT_SUPERRES_KF_QTHRESH;
av1enc->aom_cfg.rc_end_usage = DEFAULT_END_USAGE;
av1enc->aom_cfg.rc_end_usage = (enum aom_rc_mode) DEFAULT_END_USAGE;
av1enc->aom_cfg.rc_target_bitrate = DEFAULT_TARGET_BITRATE;
av1enc->aom_cfg.rc_min_quantizer = DEFAULT_MIN_QUANTIZER;
av1enc->aom_cfg.rc_max_quantizer = DEFAULT_MAX_QUANTIZER;