Skip to content

Commit a5c7f71

Browse files
author
litongmacos
committed
change %d to %llu
1 parent 1072870 commit a5c7f71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ bool read_mp3(const std::string &fname, std::vector<float> &pcmf32, bool stereo)
774774
drmp3_uint64 frameCount;
775775
float *pSampleData = drmp3__full_read_and_close_f32(&mp3, nullptr, &frameCount);
776776
bool isAllocated = false;
777-
fprintf(stdout, "mp3.channels %d,mp3.sampleRate %d, frameCount:%d\n", mp3.channels, mp3.sampleRate, frameCount);
777+
fprintf(stdout, "mp3.channels %d,mp3.sampleRate %d, frameCount:%llu\n", mp3.channels, mp3.sampleRate, frameCount);
778778

779779
if (!stereo && mp3.channels == 2) {
780780
std::vector<float> monoData;
@@ -791,7 +791,7 @@ bool read_mp3(const std::string &fname, std::vector<float> &pcmf32, bool stereo)
791791
mp3.channels = 1; // Update the number of channels
792792
}
793793

794-
printf("mp3.channels %d,mp3.sampleRate %d, frameCount:%d\n", mp3.channels, mp3.sampleRate, frameCount);
794+
printf("mp3.channels %d,mp3.sampleRate %d, frameCount:%llu\n", mp3.channels, mp3.sampleRate, frameCount);
795795
if (mp3.sampleRate != COMMON_SAMPLE_RATE) {
796796
std::vector<float> resampledData;
797797
if (!resample(pSampleData, mp3.sampleRate, frameCount, resampledData, COMMON_SAMPLE_RATE)) {

0 commit comments

Comments
 (0)