summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-05 21:52:14 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-05 21:52:14 +0200
commit1d231ff272512af0159c837af5ac819d5ae957b9 (patch)
tree3d45e896e4170b34e1d9fa57b8b026c591851bed
parent3667f765d72efd555723209d5c301a2c06f9a100 (diff)
fixed mp3 parser slowdown
-rw-r--r--plugins/mpgmad/mpgmad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index ddc67a7b..3888eea0 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -575,7 +575,6 @@ cmp3_scan_stream (buffer_t *buffer, int sample) {
}
if (sample == 0) {
- trace ("parsing 1st 3000 frames\n");
if (fsize <= 0) {
trace ("cmp3_scan_stream: negative file size\n");
return -1;
@@ -585,7 +584,7 @@ cmp3_scan_stream (buffer_t *buffer, int sample) {
buffer->avg_samplerate += samplerate;
buffer->avg_samples_per_frame += samples_per_frame;
avg_bitrate += bitrate;
- if (nframe >= 3000) {
+ if (nframe >= 100) {
goto end_scan;
}
}