h264-encoder: Set quality
This is to get libav to stop complaining about quality not being setpull/65/head
parent
362918a8cf
commit
d85347cfe3
|
@ -312,6 +312,7 @@ static int h264_encoder__init_codec_context(struct h264_encoder* self,
|
||||||
c->pix_fmt = AV_PIX_FMT_VAAPI;
|
c->pix_fmt = AV_PIX_FMT_VAAPI;
|
||||||
c->gop_size = INT32_MAX; /* We'll select key frames manually */
|
c->gop_size = INT32_MAX; /* We'll select key frames manually */
|
||||||
c->max_b_frames = 0; /* B-frames are bad for latency */
|
c->max_b_frames = 0; /* B-frames are bad for latency */
|
||||||
|
c->global_quality = 20;
|
||||||
|
|
||||||
/* open-h264 requires baseline profile, so we use constrained
|
/* open-h264 requires baseline profile, so we use constrained
|
||||||
* baseline.
|
* baseline.
|
||||||
|
|
Loading…
Reference in New Issue