Commit 309ead70 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/mlpdec: Remove unused-but-set variable

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 204a72d7
...@@ -34,12 +34,11 @@ ...@@ -34,12 +34,11 @@
static int av_always_inline mlp_thd_probe(const AVProbeData *p, uint32_t sync) 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; 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; int nsubframes = 0;
for (buf = p->buf; buf + 8 <= end; buf++) { for (buf = p->buf; buf + 8 <= end; buf++) {
if (AV_RB32(buf + 4) == sync) { if (AV_RB32(buf + 4) == sync) {
frames++;
if (last_buf + size == buf) { if (last_buf + size == buf) {
valid += 1 + nsubframes / 8; valid += 1 + nsubframes / 8;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment