From 575118f62cf80b4389cb7f18c32ef9ffb771a50f Mon Sep 17 00:00:00 2001 From: Philippe G Date: Wed, 13 May 2020 20:14:59 -0700 Subject: [PATCH] release --- components/squeezelite/helix-aac.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/squeezelite/helix-aac.c b/components/squeezelite/helix-aac.c index 2162f16e..540f7f3c 100644 --- a/components/squeezelite/helix-aac.c +++ b/components/squeezelite/helix-aac.c @@ -441,9 +441,8 @@ static decode_state helixaac_decode(void) { bytes = bytes_wrap - bytes; endstream = false; - // mp4 end of chunk - skip to next offset if (a->chunkinfo && a->chunkinfo[a->nextchunk].offset && a->sample++ == a->chunkinfo[a->nextchunk].sample) { - + // mp4 end of chunk - skip to next offset if (a->chunkinfo[a->nextchunk].offset > a->pos) { u32_t skip = a->chunkinfo[a->nextchunk].offset - a->pos; if (skip != bytes) { @@ -460,15 +459,12 @@ static decode_state helixaac_decode(void) { LOG_ERROR("error: need to skip backwards!"); endstream = true; } - - // adts and mp4 when not at end of chunk } else if (bytes > 0) { - + // adts and mp4 when not at end of chunk _buf_inc_readp(streambuf, bytes); a->pos += bytes; - - // error which doesn't advance streambuf - end } else { + // error which doesn't advance streambuf - end endstream = true; }