index b[3] out of bounds.
Code: Alles auswählen
while (found < 4 && ring_rest(vid_buffy)){
uint8_t b[3];
vring_peek( rem, b, 4, 0);
if ( b[0] == 0x00 && b[1] == 0x00 && b[2] == 0x01
&& b[3] == 0xb3) found = 4;
else {
off++;
vring_read( rem, b, 1);
}
}