avformat/sccdec: Make constants more intelligible

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent 6795ebb2ea
commit ac42b60441
  1. 4
      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;

Loading…
Cancel
Save