diff options
author | Sergio <sergio@sergione.(none)> | 2014-06-16 15:48:00 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-16 20:31:11 +0200 |
commit | 8af4aca43ad1939c578f24e998d2d2ff58e7cc2c (patch) | |
tree | 525946c4d8a67a42ab2d3456ccb1ddcce896facc /src/dabplus-enc.cpp | |
parent | 039b48b75d8b26d4a15c01be7513140a6be493da (diff) | |
download | fdk-aac-8af4aca43ad1939c578f24e998d2d2ff58e7cc2c.tar.gz fdk-aac-8af4aca43ad1939c578f24e998d2d2ff58e7cc2c.tar.bz2 fdk-aac-8af4aca43ad1939c578f24e998d2d2ff58e7cc2c.zip |
fifo silence bug fix
Diffstat (limited to 'src/dabplus-enc.cpp')
-rw-r--r-- | src/dabplus-enc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index f186dbe..9cb9333 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -597,9 +597,10 @@ int main(int argc, char *argv[]) break; } else if (read != input_size) { - if (inFifoSilence && ((errno==EAGAIN)||(errno==0))) { + 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; |