ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@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) {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to