summaryrefslogtreecommitdiff
path: root/plugins/aac
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-14 22:31:05 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-14 22:31:05 +0100
commit7248a65b85c78e7ac3d2985a3d13c272bf2b1564 (patch)
tree9b248569e48051ea8d1d8be82e0d2db991026104 /plugins/aac
parent632eb7b107267d40ada93fc3fdaf0e23be31250d (diff)
aac: changed raw aac detection (was refusing to open valid, but partly corrupted, files)
Diffstat (limited to 'plugins/aac')
-rw-r--r--plugins/aac/aac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c
index d86298a5..32f4fd0e 100644
--- a/plugins/aac/aac.c
+++ b/plugins/aac/aac.c
@@ -159,15 +159,15 @@ parse_aac_stream(DB_FILE *fp, int *psamplerate, int *pchannels, float *pduration
if (size == 0) {
memmove (buf, buf+1, sizeof (buf)-1);
bufsize--;
-// trace ("aac_sync fail, framepos: %d\n", framepos);
- if (deadbeef->ftell (fp) - initfpos > 4000) { // how many is enough to make sure?
- break;
- }
+ trace ("aac_sync fail, framepos: %d\n", framepos);
+// if (deadbeef->ftell (fp) - initfpos > 4000) { // how many is enough to make sure?
+// break;
+// }
framepos++;
continue;
}
else {
-// trace ("aac: frame #%d sync: %dch %d %d %d %d\n", frame, channels, samplerate, bitrate, samples, size);
+ trace ("aac: frame #%d sync: %dch %d %d %d %d\n", frame, channels, samplerate, bitrate, samples, size);
frame++;
nsamples += samples;
if (!stream_sr) {