mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
libs: encoder: h264: 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
ee159b58ee
commit
75fd0d4ff0
1 changed files with 0 additions and 1 deletions
|
@ -1877,7 +1877,6 @@ fill_sequence (GstVaapiEncoderH264 * 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;
|
||||
|
|
Loading…
Reference in a new issue