h264-encoder: Set quality

This is to get libav to stop complaining about quality not being set
pull/65/head
Andri Yngvason 2022-07-09 17:19:44 +00:00
parent 362918a8cf
commit d85347cfe3
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ static int h264_encoder__init_codec_context(struct h264_encoder* self,
c->pix_fmt = AV_PIX_FMT_VAAPI;
c->gop_size = INT32_MAX; /* We'll select key frames manually */
c->max_b_frames = 0; /* B-frames are bad for latency */
c->global_quality = 20;
/* open-h264 requires baseline profile, so we use constrained
* baseline.