Skip to content

Commit

Permalink
h264-encoder: Set quality
Browse files Browse the repository at this point in the history
This is to get libav to stop complaining about quality not being set
  • Loading branch information
any1 committed Jul 9, 2022
1 parent 362918a commit d85347c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/h264-encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d85347c

Please sign in to comment.