summaryrefslogtreecommitdiff
path: root/libavformat/sccdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-01 15:30:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 17:16:02 +0200
commitac42b604415af9e72b61ae58976e6b5c4c7499c7 (patch)
treebbd7af14113399304f4ba5b03beb1b04c818e415 /libavformat/sccdec.c
parent6795ebb2eaa2c1d8ed9e40d83ebac6d695e9cc6d (diff)
avformat/sccdec: Make constants more intelligible
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/sccdec.c')
-rw-r--r--libavformat/sccdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index cd45bda8c9..286b1b3b0e 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -51,9 +51,9 @@ static int scc_probe(const AVProbeData *p)
static int convert(uint8_t x)
{
if (x >= 'a')
- x -= 87;
+ x -= 'a' - 10;
else if (x >= 'A')
- x -= 55;
+ x -= 'A' - 10;
else
x -= '0';
return x;