Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- libavformat/sccdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
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; -- 2.30.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".