aac incorrect synchro at the beginnign of a block locks the decoder

This commit is contained in:
philippe44
2019-07-01 14:41:28 -07:00
parent 81452733fc
commit 811b132aa3
2 changed files with 5 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ static decode_state helixaac_decode(void) {
channels = info.nChans;
samplerate = info.sampRateOut;
found = 1;
}
} else if (n == 0) n++;
HAAC(a, FlushCodec, a->hAac);
@@ -412,6 +412,7 @@ static decode_state helixaac_decode(void) {
// not finished header parsing come back next time
UNLOCK_S;
LOG_INFO("header not found yet");
return DECODE_RUNNING;
}
}

View File

@@ -280,9 +280,8 @@ static void *output_thread_i2s() {
SET_MIN_MAX( TIME_MEASUREMENT_GET(timer_start),i2s_time);
frames = 0;
} else {
LOG_WARN("no frame returned %d", output.state);
}
}
return 0;