diff mbox series

[FFmpeg-devel,2/8] avformat/mlpdec: Remove unused-but-set variable

Message ID DB6PR0101MB221495330883A2482FEF70D88FB89@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit 309ead7067ae7dd6d591b908a87e987713d6173b
Headers show
Series [FFmpeg-devel,1/8] avformat/bintext: Remove set-but-unused variable | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt June 28, 2022, 11:30 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/mlpdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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;
             }