mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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:
parent
2cdcca7aba
commit
b26f3d989d
2 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue