Commit 990c14c1 authored by schreibfaul1's avatar schreibfaul1

skip FLAC (blocktype) padding

parent 2b7125c1
...@@ -309,6 +309,8 @@ int FLACparseOGG(uint8_t *inbuf, int *bytesLeft){ // reference https://www.xiph ...@@ -309,6 +309,8 @@ int FLACparseOGG(uint8_t *inbuf, int *bytesLeft){ // reference https://www.xiph
(void)continuedPage; (void)lastPage; (void)continuedPage; (void)lastPage;
// log_i("firstPage %i, continuedPage %i, lastPage %i", firstPage, continuedPage, lastPage);
if(firstPage) s_flacPageNr = 0; if(firstPage) s_flacPageNr = 0;
uint16_t headerSize = pageSegments + 27; uint16_t headerSize = pageSegments + 27;
...@@ -387,8 +389,8 @@ int parseMetaDataBlockHeader(uint8_t *inbuf, int16_t nBytes){ ...@@ -387,8 +389,8 @@ int parseMetaDataBlockHeader(uint8_t *inbuf, int16_t nBytes){
break; break;
case 1: case 1:
bt = padding; bt = padding;
log_e("padding"); // log_e("padding");
return ERR_FLAC_UNIMPLEMENTED; return ERR_FLAC_NONE;
break; break;
case 2: case 2:
bt = application; bt = application;
...@@ -564,7 +566,7 @@ int parseMetaDataBlockHeader(uint8_t *inbuf, int16_t nBytes){ ...@@ -564,7 +566,7 @@ int parseMetaDataBlockHeader(uint8_t *inbuf, int16_t nBytes){
if(vb[i]){free(vb[i]); vb[i] = NULL;} if(vb[i]){free(vb[i]); vb[i] = NULL;}
} }
if(!s_flacBlockPicLen) s_f_lastMetaDataBlock = true; // exeption:: goto audiopage after commemt if lastMetaDataFlag is not set if(!s_flacBlockPicLen && s_flacSegmTableVec.size() == 1) s_f_lastMetaDataBlock = true; // exeption:: goto audiopage after commemt if lastMetaDataFlag is not set
if(ret == FLAC_PARSE_OGG_DONE) return ret; if(ret == FLAC_PARSE_OGG_DONE) return ret;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment