Fixes Ticket3363
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
while (code & top) {
int tmp;
if (p >= buf_end) {
- ret = AVERROR(EILSEQ); /* incomplete sequence */
- goto end;
+ (*bufp) ++;
+ return AVERROR(EILSEQ); /* incomplete sequence */
}
/* we assume the byte to be in the form 10xx-xxxx */
tmp = *p++ - 128; /* strip leading 1 */
if (tmp>>6) {
- ret = AVERROR(EILSEQ);
- goto end;
+ (*bufp) ++;
+ return AVERROR(EILSEQ);
}
code = (code<<6) + tmp;
top <<= 5;