summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-28 12:21:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-03 11:41:23 +0200
commit204a72d7c4db43a5c27d606ec76e41748ce71c5d (patch)
treed4b9effd9e400bd3d4d79b1c7dfe8c54aa5040b1 /libavformat
parentae90897bc9da310a9e98411fffa6f6b70527024d (diff)
avformat/bintext: Remove set-but-unused variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/bintext.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index 0465b86f4b..b6f14a03e5 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -132,8 +132,6 @@ static int bin_probe(const AVProbeData *p)
{
const uint8_t *d = p->buf;
int magic = 0, sauce = 0;
- int invisible = 0;
- int i;
if (p->buf_size > 256)
magic = !memcmp(d + p->buf_size - 256, next_magic, sizeof(next_magic));
@@ -157,12 +155,6 @@ static int bin_probe(const AVProbeData *p)
if (par.height <= 0)
return 0;
- for (i = 0; i < p->buf_size - 256; i+=2) {
- if ((d[i+1] & 15) == (d[i+1] >> 4) && d[i] && d[i] != 0xFF && d[i] != ' ') {
- invisible ++;
- }
- }
-
if (par.width * par.height * 2 / (8*16) == p->buf_size)
return AVPROBE_SCORE_MAX / 2;
return 0;