[FFmpeg-cvslog] avformat/sccdec: Remove nonsense cast
Andreas Rheinhardt
git at videolan.org
Thu Oct 7 13:06:00 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct 1 10:33:38 2021 +0200| [07bf8f833261e06771f399f2b547b17bd1a351df] | committer: Andreas Rheinhardt
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 at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=07bf8f833261e06771f399f2b547b17bd1a351df
---
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) {
More information about the ffmpeg-cvslog
mailing list