You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-25 14:23:15 +02:00
vaapi_encode: Clean up the GOP structure configuration
Choose what types of reference frames will be used based on what types are available, and make the intra-only mode explicit (GOP size one, which must be used for MJPEG).
This commit is contained in:
@ -493,8 +493,8 @@ static int vaapi_encode_h264_init_sequence_params(AVCodecContext *avctx)
|
||||
*vseq = (VAEncSequenceParameterBufferH264) {
|
||||
.seq_parameter_set_id = sps->seq_parameter_set_id,
|
||||
.level_idc = sps->level_idc,
|
||||
.intra_period = avctx->gop_size,
|
||||
.intra_idr_period = avctx->gop_size,
|
||||
.intra_period = ctx->gop_size,
|
||||
.intra_idr_period = ctx->gop_size,
|
||||
.ip_period = ctx->b_per_p + 1,
|
||||
|
||||
.bits_per_second = ctx->va_bit_rate,
|
||||
|
Reference in New Issue
Block a user