diff --git a/libavformat/internal.h b/libavformat/internal.h
index 1f74069bcc0423ba559a5452e938c7fabd08ca4e..ceeaa1c65f8f80b4e574e17769c4a14a72b9ec3b 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -26,6 +26,10 @@
 
 #define MAX_URL_SIZE 4096
 
+/** size of probe buffer, for guessing file type from file contents */
+#define PROBE_BUF_MIN 2048
+#define PROBE_BUF_MAX (1<<20)
+
 #ifdef DEBUG
 #    define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
 #else
diff --git a/libavformat/utils.c b/libavformat/utils.c
index dca4304963d65f3d0fab375fe96e3ed4942e3220..ab2f4241465e771ec9ea359c71ee283cd35ba5c5 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -309,10 +309,6 @@ int av_demuxer_open(AVFormatContext *ic){
 }
 
 
-/** size of probe buffer, for guessing file type from file contents */
-#define PROBE_BUF_MIN 2048
-#define PROBE_BUF_MAX (1<<20)
-
 int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
                           const char *filename, void *logctx,
                           unsigned int offset, unsigned int max_probe_size)