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,8 +370,8 @@ static decode_state helixaac_decode(void) {
channels = info.nChans;
samplerate = info.sampRateOut;
found = 1;
}
} else if (n == 0) n++;
HAAC(a, FlushCodec, a->hAac);
bytes_total -= n;
@@ -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;
}
}