mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
6795ebb2ea
commit
ac42b60441
|
@ -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…
Reference in New Issue