diff options
Diffstat (limited to 'src/dabplus-enc.cpp')
-rw-r--r-- | src/dabplus-enc.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index 9cb9333..2822f94 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -598,13 +598,15 @@ int main(int argc, char *argv[]) } else if (read != input_size) { if (inFifoSilence && file_in.eof()) { - memset(input_buf, 0, input_size); - read = input_size; - usleep((long int)input_size*1000000/(bytes_per_sample*channels*sample_rate)); - } else { - fprintf(stderr, "Short file read !\n"); - break; - } + memset(input_buf, 0, input_size); + read = input_size; + usleep((long)input_size * 1000000 / + (bytes_per_sample * channels * sample_rate)); + } + else { + fprintf(stderr, "Short file read !\n"); + break; + } } } else if (drift_compensation) { |