libs: encoder: h265: remove spurious assignation
Coverity scan bug: An assigned value that is never used may represent unnecessary computation, an incorrect algorithm, or possibly the need for cleanup or refactoring. ip_period is assigned first to be rewritter inmediatly after. The first assignation is spurious.
This commit is contained in:
parent
f197749343
commit
d65ce31f14
@ -1457,7 +1457,6 @@ fill_sequence (GstVaapiEncoderH265 * encoder, GstVaapiEncSequence * sequence)
|
||||
|
||||
seq_param->intra_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (encoder);
|
||||
seq_param->intra_idr_period = encoder->idr_period;
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user