From 18855db9d72965996f5bb5479012f854d2b30692 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 17 Oct 2012 20:00:52 +0200 Subject: Revert "aac: fail adts parser if encountered many failed frames in a row" This reverts commit 1ab32a2802e79ae39226f25fe81150fe80858757. --- plugins/aac/aac.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'plugins/aac') 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) { -- cgit v1.2.3