summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-28 12:23:31 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-03 11:41:23 +0200
commit309ead7067ae7dd6d591b908a87e987713d6173b (patch)
tree80887df8f986e2bdf5b7d9b78cd0feb677ceed4c /libavformat
parent204a72d7c4db43a5c27d606ec76e41748ce71c5d (diff)
avformat/mlpdec: Remove unused-but-set variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mlpdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mlpdec.c b/libavformat/mlpdec.c
index 4834f697f3..f4fed65851 100644
--- a/libavformat/mlpdec.c
+++ b/libavformat/mlpdec.c
@@ -34,12 +34,11 @@
static int av_always_inline mlp_thd_probe(const AVProbeData *p, uint32_t sync)
{
const uint8_t *buf, *last_buf = p->buf, *end = p->buf + p->buf_size;
- int frames = 0, valid = 0, size = 0;
+ int valid = 0, size = 0;
int nsubframes = 0;
for (buf = p->buf; buf + 8 <= end; buf++) {
if (AV_RB32(buf + 4) == sync) {
- frames++;
if (last_buf + size == buf) {
valid += 1 + nsubframes / 8;
}