summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/bonk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/bonk.c b/libavformat/bonk.c
index 7ce895fa96..bd99c553e7 100644
--- a/libavformat/bonk.c
+++ b/libavformat/bonk.c
@@ -59,7 +59,7 @@ static int bonk_read_header(AVFormatContext *s)
AVStream *st;
int ret;
- for (int i = 0; !avio_feof(s->pb); i++) {
+ while (!avio_feof(s->pb)) {
const int b = avio_r8(s->pb);
if (!b) {
uint32_t t;