Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
}
}
- if (size == 0)
- continue;
+ if (size == 0) {
+ ret = AVERROR(EAGAIN);
+ goto leave;
+ }
next = size + avio_tell(s->pb);
type, size, flags);
skip:
avio_seek(s->pb, next, SEEK_SET);
- continue;
+ ret = AVERROR(EAGAIN);
+ goto leave;
}
/* skip empty data packets */
- if (!size)
- continue;
+ if (!size) {
+ ret = AVERROR(EAGAIN);
+ goto leave;
+ }
/* now find stream */
for (i = 0; i < s->nb_streams; i++) {
|| st->discard >= AVDISCARD_ALL
) {
avio_seek(s->pb, next, SEEK_SET);
- continue;
+ ret = AVERROR(EAGAIN);
+ goto leave;
}
break;
}