also set upstream to error state

master
leitner 4 years ago
parent 235dfb18cd
commit 51869a80f8

@ -3,4 +3,6 @@
void bs_seterrorstate(struct bytestream* b) {
b->cur = 1;
b->max = 0;
if (b->type == BSTREAM)
bs_seterrorstate(b->u.bs);
}

Loading…
Cancel
Save