diff --git a/libavformat/aiff.c b/libavformat/aiff.c
index 914c3a73b864dd30cf4b1f144adab341a5e9012c..e4cf66c3b40edae9bdc9ebc8393973bc31240dbe 100644
--- a/libavformat/aiff.c
+++ b/libavformat/aiff.c
@@ -23,7 +23,7 @@
 #include "riff.h"
 #include "intfloat_readwrite.h"
 
-const CodecTag codec_aiff_tags[] = {
+static const CodecTag codec_aiff_tags[] = {
     { CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') },
     { CODEC_ID_PCM_S8, MKTAG('N','O','N','E') },
     { CODEC_ID_PCM_S24BE, MKTAG('N','O','N','E') },
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 9f46e1ae0c8d0fbc8407b3c740fdee78d3f4b8cf..dd5f0adca4093253fe8c02f3449687ecbb6f9919 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1132,7 +1132,7 @@ static int mpegts_probe(AVProbeData *p)
 #endif
 }
 
-void set_service_cb(void *opaque, int ret)
+static void set_service_cb(void *opaque, int ret)
 {
     MpegTSContext *ts = opaque;
     ts->set_service_ret = ret;