diff mbox series

[FFmpeg-devel,05/20] avformat/sccdec: Remove nonsense cast

Message ID AM7PR03MB66605D6D6EBD24D2E6EA063F8FAB9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Headers show
Series [FFmpeg-devel,01/20] libpostproc/postprocess_template: Don't reimplement FFSWAP | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 1, 2021, 9:08 p.m. UTC
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>
---
 libavformat/sccdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index e95fd881a3..592609eb88 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -120,7 +120,7 @@  static int scc_read_header(AVFormatContext *s)
         next_ts = (hh * 3600LL + mm * 60LL + ss) * 1000LL + fs * 33LL;
 
         pos = ff_text_pos(&tr);
-        lline = (char *)&line;
+        lline = line;
         lline += 12;
 
         for (i = 0; i < 4095; i += 3) {