From 2c495b5d808f2974e00b71c780205712d920961e Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Sun, 23 Mar 2008 12:36:16 +0000 Subject: [PATCH] casting Originally committed to SVN as r2119. --- aegisub/audio_provider_lavc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/audio_provider_lavc.cpp b/aegisub/audio_provider_lavc.cpp index 5a128e3dc..53feb2eba 100644 --- a/aegisub/audio_provider_lavc.cpp +++ b/aegisub/audio_provider_lavc.cpp @@ -198,14 +198,14 @@ void LAVCAudioProvider::GetAudio(void *buf, int64_t start, int64_t count) /* make some noise if we somehow ended up with more samples than we wanted (will cause audio skew) */ if (decoded_samples > samples_to_decode) - wxLogMessage(wxString::Format(_T("Warning: decoder output more samples than requested, audio skew highly likely! (Wanted %d, got %d)"), samples_to_decode, decoded_samples)); + wxLogMessage(wxString::Format(_T("Warning: decoder output more samples than requested, audio skew highly likely! (Wanted %d, got %d)"), (int)samples_to_decode, decoded_samples)); } else { /* no resampling needed, just copy to the buffer */ /* if (decoded_samples > samples_to_decode) decoded_samples = samples_to_decode; */ /* I do not understand the point of the above -Fluff */ if (decoded_samples > samples_to_decode) - wxLogMessage(wxString::Format(_T("Warning: decoder output more samples than requested, audio skew highly likely! (Wanted %d, got %d)"), samples_to_decode, decoded_samples)); + wxLogMessage(wxString::Format(_T("Warning: decoder output more samples than requested, audio skew highly likely! (Wanted %d, got %d)"), (int)samples_to_decode, decoded_samples)); memcpy(_buf, buffer, temp_output_buffer_size); }