libs: encoder: h264/h264fei: remove unuseless code.

The variable are set twice, remove previous one.

https://bugzilla.gnome.org/show_bug.cgi?id=797365
This commit is contained in:
Wangfei 2018-11-03 15:06:09 +08:00 committed by Víctor Manuel Jáquez Leal
parent 2cdcca7aba
commit b26f3d989d
2 changed files with 0 additions and 2 deletions

View file

@ -1892,7 +1892,6 @@ fill_sequence (GstVaapiEncoderH264Fei * encoder, GstVaapiEncSequence * sequence)
seq_param->level_idc = encoder->level_idc;
seq_param->intra_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (encoder);
seq_param->intra_idr_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (encoder);
seq_param->ip_period = 1 + encoder->num_bframes;
seq_param->ip_period = seq_param->intra_period > 1 ?
(1 + encoder->num_bframes) : 0;
seq_param->bits_per_second = encoder->bitrate_bits;

View file

@ -641,7 +641,6 @@ fill_sequence (GstVaapiFeiEncH264 * feienc, GstVaapiEncSequence * sequence)
seq_param->level_idc = feienc->level_idc;
seq_param->intra_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (feienc);
seq_param->intra_idr_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (feienc);
seq_param->ip_period = 1 + feienc->num_bframes;
seq_param->ip_period = seq_param->intra_period > 1 ?
(1 + feienc->num_bframes) : 0;
seq_param->bits_per_second = feienc->bitrate_bits;