0

I am trying to decode mp3 from icecast server but i am getting hip: bitstream problem, resyncing skipping 164 bytes... error. I am decoding using lame decoder.

hip_t hipVal;
hipVal = hip_decode_init();
while(1)
{
Readdatafromnet(ringBuf, (void**)&buffer);
sampleno = hip_decode(hipVal,buffer,irhandle->size, pcmrBuffer, pcmlBuffer);
player_write(handle, pcmrBuffer, sampleno);
}
hip_decode_exit(hipVal);
Preenu P
  • 21
  • 5
  • 1
    Consider upgrading the shown code to a [mre] please. – Yunnosch Oct 01 '19 at 04:31
  • 1
    Are you requesting metadata interleaving/injection by setting the `Icy-MetaData` HTTP header? If yes, then you MUST de-interleave your data at the signalled `Icy-metaint` before you feed it to your decoder. – TBR Oct 01 '19 at 05:42
  • @TBR I am not requesting metadata – Preenu P Oct 09 '19 at 06:44
  • Do you get this error at the very beginning of your data stream? – TBR Oct 09 '19 at 15:24

0 Answers0