]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rawdec.h
avformat: Constify all muxer/demuxers
[ffmpeg] / libavformat / rawdec.h
index 34c8adcb199a9a7924a318cfd70eecaf216a85ad..e64ad8010cff65f4c4d853c806c00296ead7f616 100644 (file)
@@ -70,7 +70,7 @@ static const AVClass name ## _demuxer_class = {\
 
 #define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\
 FF_RAWVIDEO_DEMUXER_CLASS(shortname)\
-AVInputFormat ff_ ## shortname ## _demuxer = {\
+const AVInputFormat ff_ ## shortname ## _demuxer = {\
     .name           = #shortname,\
     .long_name      = NULL_IF_CONFIG_SMALL(longname),\
     .read_probe     = probe,\
@@ -96,7 +96,7 @@ static const AVClass name ## _demuxer_class = {\
 
 #define FF_DEF_RAWSUB_DEMUXER(shortname, longname, probe, ext, id, flag)\
 FF_RAWSUB_DEMUXER_CLASS(shortname)\
-AVInputFormat ff_ ## shortname ## _demuxer = {\
+const AVInputFormat ff_ ## shortname ## _demuxer = {\
     .name           = #shortname,\
     .long_name      = NULL_IF_CONFIG_SMALL(longname),\
     .read_probe     = probe,\