Update source to Armbian-dev-202610.A311Y3
This commit is contained in:
@@ -420,8 +420,13 @@ retry:
|
||||
gFaadCxt->success_count++;
|
||||
in_buf += skipbytes;
|
||||
inbuf_size -= skipbytes;
|
||||
if (gFaadCxt->success_count < 2)
|
||||
if (gFaadCxt->success_count < 2) {
|
||||
/* close current decoder before retry, otherwise it is leaked
|
||||
when NeAACDecOpen() overwrites gFaadCxt->hDecoder */
|
||||
NeAACDecClose(gFaadCxt->hDecoder);
|
||||
gFaadCxt->hDecoder = NULL;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
in_buf += ret;
|
||||
inbuf_size -= ret;
|
||||
|
||||
@@ -193,6 +193,15 @@ void sbrDecodeEnd(sbr_info *sbr)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sbr->process_buf) {
|
||||
faad_free(sbr->process_buf);
|
||||
sbr->process_buf = NULL;
|
||||
}
|
||||
if (sbr->process_buf2) {
|
||||
faad_free(sbr->process_buf2);
|
||||
sbr->process_buf2 = NULL;
|
||||
}
|
||||
|
||||
faad_free(sbr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user