[warnings] fix implicit widening conversion

This commit is contained in:
akallabeth
2024-08-26 16:33:59 +02:00
parent 4439240fd3
commit 15456e1ee1
69 changed files with 467 additions and 459 deletions

View File

@@ -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;

View File

@@ -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