From 07bf8f833261e06771f399f2b547b17bd1a351df Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 1 Oct 2021 10:33:38 +0200 Subject: [PATCH] avformat/sccdec: Remove nonsense cast In most contexts, arrays are automatically converted to a pointer to their first element; taking the address of the array just yields a pointer to an array of fixed-size arrays, which is not intended here. Signed-off-by: Andreas Rheinhardt --- libavformat/sccdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c index 5f90edbef6..720fd0434f 100644 --- a/libavformat/sccdec.c +++ b/libavformat/sccdec.c @@ -96,7 +96,7 @@ static int scc_read_header(AVFormatContext *s) if (sub) sub->duration = ts - sub->pts; - lline = (char *)&line; + lline = line; lline += 12; for (i = 0; i < 4095; i += 3) {