From e9de794d7fb0d52d63a37758dc605322321e34c3 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Tue, 7 Jan 2025 17:57:52 +0100 Subject: [PATCH] avformat/flvdec: add missing track_size decrement --- libavformat/flvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 3173f010e4..b2880414a1 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1586,6 +1586,7 @@ retry_duration: for (i = 0; i < channels; i++) { uint8_t id = avio_r8(s->pb); size--; + track_size--; if (id < 18) st->codecpar->ch_layout.u.map[i].id = id;