avformat/sccdec: Make constants more intelligible

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-10-01 15:30:30 +02:00
parent 6795ebb2ea
commit ac42b60441
1 changed files with 2 additions and 2 deletions

View File

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