diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-01 10:33:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-07 11:52:10 +0200 |
commit | 07bf8f833261e06771f399f2b547b17bd1a351df (patch) | |
tree | 0636db2350f03d15e2418caf9f1da8b9b4db3ae4 | |
parent | c9b44a79d1bc87251f36926b288f79adefec397f (diff) | |
download | ffmpeg-07bf8f833261e06771f399f2b547b17bd1a351df.tar.gz |
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 <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/sccdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |