Re: [Spice-devel] [spice v2] gstreamer-encoder: Return the average frame size as a 32 bit int

2019-05-21 Thread Frediano Ziglio
> > It makes no sense to expect average frame sizes anywhere close to 2GB. > But then make sure to avoid arithmetic overflows. > > Signed-off-by: Francois Gouget Acked-by: Frediano Ziglio > --- > > In get_min_playback_delay() I opted for the cast approach as this makes > what happens

[Spice-devel] [spice v2] gstreamer-encoder: Return the average frame size as a 32 bit int

2019-05-20 Thread Francois Gouget
It makes no sense to expect average frame sizes anywhere close to 2GB. But then make sure to avoid arithmetic overflows. Signed-off-by: Francois Gouget --- In get_min_playback_delay() I opted for the cast approach as this makes what happens clearer. I deemed the assignment (uint32_t)