summaryrefslogtreecommitdiff
path: root/src/flac/decode.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2014-06-28 21:40:59 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-06-28 22:25:18 +1000
commit1d12d98edaa4beb591f876abd13e1c93dc5def7c (patch)
treeef996e5a147335ca5d8fbfb853b8c6423af04251 /src/flac/decode.c
parenta5c3a37c2a56a96af2dbb5553668f7684a15ab86 (diff)
downloadflac-1d12d98edaa4beb591f876abd13e1c93dc5def7c.tar.gz
flac: Fix encoder and decode progress messages with --ogg.
Problem discussed here: http://lists.xiph.org/pipermail/flac-dev/2014-June/004808.html The values for the interval between two updates (e->stats_mask, e->stats_frames_interval) were set ~10 years ago, and it is small for current CPUs. It was now been increased too (0x3f -> 0xff, etc). The update interval is still less than 1 second. Patch-from: lvqcl <lvqcl.mail@gmail.com>
Diffstat (limited to 'src/flac/decode.c')
-rw-r--r--src/flac/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flac/decode.c b/src/flac/decode.c
index d48573a4..23c68194 100644
--- a/src/flac/decode.c
+++ b/src/flac/decode.c
@@ -1082,7 +1082,7 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder
decoder_session->samples_processed += wide_samples;
decoder_session->frame_counter++;
- if(!(decoder_session->frame_counter & 0x3f))
+ if(!(decoder_session->frame_counter & 0x1ff))
print_stats(decoder_session);
if(decoder_session->analysis_mode) {