diff mbox series

[FFmpeg-devel,09/20] avformat/sccdec: Make constants more intelligible

Message ID AM7PR03MB66605996703128538D416F088FAB9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit ac42b604415af9e72b61ae58976e6b5c4c7499c7
Headers show
Series [FFmpeg-devel,01/20] libpostproc/postprocess_template: Don't reimplement FFSWAP | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 1, 2021, 9:08 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/sccdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Oct. 2, 2021, 3 p.m. UTC | #1
probably ok i guess
diff mbox series

Patch

diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 0b3e1ab74c..ea9f014cf2 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;