diff mbox series

[FFmpeg-devel,4/4] avformat/ac4dec: Constify demuxer

Message ID AS8P250MB0744633F596BCFB4BA4787358F25A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit f780e07149bc3aec592e74c5eb2ee6acaa719127
Headers show
Series [FFmpeg-devel,1/4] avcodec/cbs_h266: Remove double ; | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt June 29, 2023, 6:19 p.m. UTC
The discrepancy between the definition and the declaration
in allformats.c is actually UB.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
Will apply this patchset soon.

 libavformat/ac4dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,