It makes no sense to expect average frame sizes anywhere close to 2GB. Signed-off-by: Francois Gouget <fgou...@codeweavers.com> --- server/gstreamer-encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c index e319eea22..6130781da 100644 --- a/server/gstreamer-encoder.c +++ b/server/gstreamer-encoder.c @@ -396,7 +396,7 @@ static uint64_t get_average_encoding_time(SpiceGstEncoder *encoder) return encoder->stat_duration_sum / count; } -static uint64_t get_average_frame_size(SpiceGstEncoder *encoder) +static uint32_t get_average_frame_size(SpiceGstEncoder *encoder) { uint32_t count = encoder->history_last + (encoder->history_last < encoder->stat_first ? SPICE_GST_HISTORY_SIZE : 0) - @@ -520,7 +520,7 @@ static uint32_t get_min_playback_delay(SpiceGstEncoder *encoder) * an I frame) and an average frame. This also takes into account the * frames dropped by the encoder bit rate control. */ - uint64_t size = get_maximum_frame_size(encoder) + get_average_frame_size(encoder); + uint32_t size = get_maximum_frame_size(encoder) + get_average_frame_size(encoder); uint32_t send_time = MSEC_PER_SEC * size * 8 / encoder->bit_rate; /* Also factor in the network latency with a margin for jitter. */ -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel