1017
1017
int MPEGStreamData::ResyncStream(const unsigned char *buffer, int curr_pos,
1022
1022
int nextpos = pos + TSPacket::SIZE;
1024
1024
return -1; // not enough bytes; caller should try again
1026
1026
while (buffer[pos] != SYNC_BYTE || buffer[nextpos] != SYNC_BYTE)