From 2c3107c3e9c9a8885fc0860ac471dae2f1054586 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 25 Jan 2023 18:46:21 +0100 Subject: [PATCH] avformat/bonk: remove unused variable --- libavformat/bonk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;