mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] fix implicit widening conversion
This commit is contained in:
@@ -146,15 +146,13 @@ static BOOL tsmf_alsa_play(ITSMFAudioDevice* audio, const BYTE* src, UINT32 data
|
||||
int frames = 0;
|
||||
const BYTE* end = NULL;
|
||||
const BYTE* pindex = NULL;
|
||||
int rbytes_per_frame = 0;
|
||||
int sbytes_per_frame = 0;
|
||||
TSMFAlsaAudioDevice* alsa = (TSMFAlsaAudioDevice*)audio;
|
||||
DEBUG_TSMF("data_size %" PRIu32 "", data_size);
|
||||
|
||||
if (alsa->out_handle)
|
||||
{
|
||||
sbytes_per_frame = alsa->source_channels * alsa->bytes_per_sample;
|
||||
rbytes_per_frame = alsa->actual_channels * alsa->bytes_per_sample;
|
||||
const size_t sbytes_per_frame = 1ULL * alsa->source_channels * alsa->bytes_per_sample;
|
||||
const size_t rbytes_per_frame = 1ULL * alsa->actual_channels * alsa->bytes_per_sample;
|
||||
pindex = src;
|
||||
end = pindex + data_size;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#define AUDIO_TOLERANCE 10000000LL
|
||||
|
||||
/* 1 second = 10,000,000 100ns units*/
|
||||
#define VIDEO_ADJUST_MAX 10 * 1000 * 1000
|
||||
#define VIDEO_ADJUST_MAX 10ULL * 1000ULL * 1000ULL
|
||||
|
||||
#define MAX_ACK_TIME 666667
|
||||
|
||||
|
||||
Reference in New Issue
Block a user