diff options
author | waker <wakeroid@gmail.com> | 2012-10-17 20:00:52 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-10-17 20:00:52 +0200 |
commit | 18855db9d72965996f5bb5479012f854d2b30692 (patch) | |
tree | 69f805f122115de0faa039002a859e822cb99f04 /plugins/aac/aac.c | |
parent | a465ab861a2df522d55698a894f20ab6c7b144bd (diff) |
Revert "aac: fail adts parser if encountered many failed frames in a row"
This reverts commit 1ab32a2802e79ae39226f25fe81150fe80858757.
Diffstat (limited to 'plugins/aac/aac.c')
-rw-r--r-- | plugins/aac/aac.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 1083f94f..ca0f391e 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -142,9 +142,6 @@ parse_aac_stream(DB_FILE *fp, int *psamplerate, int *pchannels, float *pduration int frame = 0; int scanframes = 1000; - - int nfail = 0; - if (fp->vfs->is_streaming ()) { scanframes = 1; } @@ -163,11 +160,6 @@ parse_aac_stream(DB_FILE *fp, int *psamplerate, int *pchannels, float *pduration memmove (buf, buf+1, sizeof (buf)-1); bufsize--; // trace ("aac_sync fail, framepos: %d\n", framepos); - nfail++; - if (nfail > 100) { - trace ("aac: many failed sync attemps, aborted\n"); - return -1; - } if (deadbeef->ftell (fp) - initfpos > 2000) { // how many is enough to make sure? break; } @@ -176,7 +168,6 @@ parse_aac_stream(DB_FILE *fp, int *psamplerate, int *pchannels, float *pduration } else { // trace ("aac: frame #%d sync: %dch %d %d %d %d\n", frame, channels, samplerate, bitrate, samples, size); - nfail = 0; frame++; nsamples += samples; if (!stream_sr) { |