[FFmpeg-devel] [PATCH 4/4] avformat/ac4dec: Constify demuxer
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Jun 29 21:19:04 EEST 2023
The discrepancy between the definition and the declaration
in allformats.c is actually UB.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
Will apply this patchset soon.
libavformat/ac4dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/ac4dec.c b/libavformat/ac4dec.c
index eb7bbaa655..71950f52dc 100644
--- a/libavformat/ac4dec.c
+++ b/libavformat/ac4dec.c
@@ -93,7 +93,7 @@ static int ac4_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}
-AVInputFormat ff_ac4_demuxer = {
+const AVInputFormat ff_ac4_demuxer = {
.name = "ac4",
.long_name = NULL_IF_CONFIG_SMALL("raw AC-4"),
.read_probe = ac4_probe,
--
2.34.1
More information about the ffmpeg-devel
mailing list