diff mbox

[FFmpeg-devel] lavf: Constify the probe function argument

Message ID CAB0OVGomB8SdpCFg5+aNXZaytBeU1HoMutqoV+mWeK8C8om8-A@mail.gmail.com
State Accepted
Headers show

Commit Message

Carl Eugen Hoyos March 21, 2019, 12:20 a.m. UTC
Hi!

Attached patch makes the only argument to the common probe() function const.

Please comment, Carl Eugen

Comments

Lauri Kasanen March 21, 2019, 8 a.m. UTC | #1
On Thu, 21 Mar 2019 01:20:21 +0100
Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:

> Hi!
>
> Attached patch makes the only argument to the common probe() function const.
>
> Please comment, Carl Eugen

LGTM

- Lauri
Tomas Härdin March 21, 2019, 10:21 a.m. UTC | #2
tor 2019-03-21 klockan 01:20 +0100 skrev Carl Eugen Hoyos:
> Hi!
> 
> Attached patch makes the only argument to the common probe() function
> const.

Looks good to me. Passes FATE.

/Tomas
Carl Eugen Hoyos March 21, 2019, 10:44 a.m. UTC | #3
2019-03-21 11:21 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:
> tor 2019-03-21 klockan 01:20 +0100 skrev Carl Eugen Hoyos:
>> Hi!
>>
>> Attached patch makes the only argument to the common probe() function
>> const.
>
> Looks good to me. Passes FATE.

Patch applied.

Thank you both, Carl Eugen
diff mbox

Patch

From 2d8fe30a4fe88c932e8c9c9dfb55150d6aa45f5f Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Thu, 21 Mar 2019 01:18:37 +0100
Subject: [PATCH] lavf: Constify the probe function argument.

---
 libavformat/3dostr.c           |    2 +-
 libavformat/4xm.c              |    2 +-
 libavformat/aacdec.c           |    2 +-
 libavformat/aadec.c            |    2 +-
 libavformat/ac3dec.c           |    6 ++---
 libavformat/acm.c              |    2 +-
 libavformat/act.c              |    2 +-
 libavformat/adp.c              |    2 +-
 libavformat/ads.c              |    2 +-
 libavformat/adxdec.c           |    2 +-
 libavformat/aea.c              |    2 +-
 libavformat/aiffdec.c          |    2 +-
 libavformat/aixdec.c           |    2 +-
 libavformat/amr.c              |    6 ++---
 libavformat/anm.c              |    2 +-
 libavformat/apc.c              |    2 +-
 libavformat/ape.c              |    2 +-
 libavformat/apngdec.c          |    2 +-
 libavformat/aqtitledec.c       |    2 +-
 libavformat/asfdec_f.c         |    2 +-
 libavformat/asfdec_o.c         |    2 +-
 libavformat/assdec.c           |    2 +-
 libavformat/astdec.c           |    2 +-
 libavformat/au.c               |    2 +-
 libavformat/avformat.h         |    2 +-
 libavformat/avidec.c           |    2 +-
 libavformat/avr.c              |    2 +-
 libavformat/avs.c              |    2 +-
 libavformat/bethsoftvid.c      |    2 +-
 libavformat/bfi.c              |    2 +-
 libavformat/bink.c             |    2 +-
 libavformat/bintext.c          |    6 ++---
 libavformat/bit.c              |    2 +-
 libavformat/boadec.c           |    2 +-
 libavformat/brstm.c            |    4 +--
 libavformat/c93.c              |    2 +-
 libavformat/cafdec.c           |    2 +-
 libavformat/cavsvideodec.c     |    2 +-
 libavformat/cdxl.c             |    2 +-
 libavformat/cinedec.c          |    2 +-
 libavformat/codec2.c           |    2 +-
 libavformat/concatdec.c        |    2 +-
 libavformat/dashdec.c          |    2 +-
 libavformat/davs2.c            |    2 +-
 libavformat/dcstr.c            |    2 +-
 libavformat/dfa.c              |    2 +-
 libavformat/dhav.c             |    2 +-
 libavformat/diracdec.c         |    2 +-
 libavformat/dnxhddec.c         |    2 +-
 libavformat/dsfdec.c           |    2 +-
 libavformat/dsicin.c           |    2 +-
 libavformat/dss.c              |    2 +-
 libavformat/dtsdec.c           |    2 +-
 libavformat/dtshddec.c         |    2 +-
 libavformat/dv.c               |    2 +-
 libavformat/dvbsub.c           |    2 +-
 libavformat/dvbtxt.c           |    2 +-
 libavformat/dxa.c              |    2 +-
 libavformat/eacdata.c          |    2 +-
 libavformat/electronicarts.c   |    2 +-
 libavformat/epafdec.c          |    2 +-
 libavformat/ffmetadec.c        |    2 +-
 libavformat/fitsdec.c          |    2 +-
 libavformat/flacdec.c          |    4 +--
 libavformat/flic.c             |    2 +-
 libavformat/flvdec.c           |    6 ++---
 libavformat/frmdec.c           |    2 +-
 libavformat/fsb.c              |    2 +-
 libavformat/gdv.c              |    2 +-
 libavformat/genh.c             |    2 +-
 libavformat/gifdec.c           |    2 +-
 libavformat/gsmdec.c           |    2 +-
 libavformat/gxf.c              |    2 +-
 libavformat/h261dec.c          |    2 +-
 libavformat/h263dec.c          |    2 +-
 libavformat/h264dec.c          |    2 +-
 libavformat/hcom.c             |    2 +-
 libavformat/hevcdec.c          |    2 +-
 libavformat/hls.c              |    2 +-
 libavformat/hnm.c              |    2 +-
 libavformat/icodec.c           |    2 +-
 libavformat/idcin.c            |    2 +-
 libavformat/idroqdec.c         |    2 +-
 libavformat/iff.c              |    2 +-
 libavformat/ilbc.c             |    2 +-
 libavformat/img2_alias_pix.c   |    2 +-
 libavformat/img2_brender_pix.c |    2 +-
 libavformat/img2dec.c          |   54 ++++++++++++++++++++--------------------
 libavformat/ingenientdec.c     |    2 +-
 libavformat/ipmovie.c          |    2 +-
 libavformat/ircamdec.c         |    2 +-
 libavformat/iss.c              |    2 +-
 libavformat/iv8.c              |    2 +-
 libavformat/ivfdec.c           |    2 +-
 libavformat/jacosubdec.c       |    2 +-
 libavformat/jvdec.c            |    2 +-
 libavformat/libgme.c           |    2 +-
 libavformat/libmodplug.c       |    2 +-
 libavformat/libopenmpt.c       |    2 +-
 libavformat/lmlm4.c            |    2 +-
 libavformat/loasdec.c          |    2 +-
 libavformat/lrcdec.c           |    2 +-
 libavformat/lvfdec.c           |    2 +-
 libavformat/lxfdec.c           |    2 +-
 libavformat/m4vdec.c           |    2 +-
 libavformat/matroskadec.c      |    2 +-
 libavformat/mgsts.c            |    2 +-
 libavformat/microdvddec.c      |    2 +-
 libavformat/mj2kdec.c          |    2 +-
 libavformat/mlpdec.c           |    6 ++---
 libavformat/mlvdec.c           |    2 +-
 libavformat/mm.c               |    2 +-
 libavformat/mmf.c              |    2 +-
 libavformat/mov.c              |    2 +-
 libavformat/mp3dec.c           |    2 +-
 libavformat/mpc.c              |    2 +-
 libavformat/mpc8.c             |    2 +-
 libavformat/mpeg.c             |    4 +--
 libavformat/mpegts.c           |    2 +-
 libavformat/mpegvideodec.c     |    2 +-
 libavformat/mpjpegdec.c        |    2 +-
 libavformat/mpl2dec.c          |    2 +-
 libavformat/mpsubdec.c         |    2 +-
 libavformat/msf.c              |    2 +-
 libavformat/msnwc_tcp.c        |    2 +-
 libavformat/mtaf.c             |    2 +-
 libavformat/mtv.c              |    2 +-
 libavformat/musx.c             |    2 +-
 libavformat/mvdec.c            |    2 +-
 libavformat/mxfdec.c           |    2 +-
 libavformat/ncdec.c            |    2 +-
 libavformat/nistspheredec.c    |    2 +-
 libavformat/nspdec.c           |    2 +-
 libavformat/nsvdec.c           |    2 +-
 libavformat/nutdec.c           |    2 +-
 libavformat/nuv.c              |    2 +-
 libavformat/oggdec.c           |    2 +-
 libavformat/omadec.c           |    2 +-
 libavformat/paf.c              |    2 +-
 libavformat/pjsdec.c           |    2 +-
 libavformat/pmpdec.c           |    2 +-
 libavformat/psxstr.c           |    2 +-
 libavformat/pva.c              |    2 +-
 libavformat/pvfdec.c           |    2 +-
 libavformat/qcp.c              |    2 +-
 libavformat/r3d.c              |    2 +-
 libavformat/rawdec.c           |    2 +-
 libavformat/realtextdec.c      |    2 +-
 libavformat/redspark.c         |    2 +-
 libavformat/rl2.c              |    2 +-
 libavformat/rmdec.c            |    4 +--
 libavformat/rpl.c              |    2 +-
 libavformat/rsd.c              |    2 +-
 libavformat/rtsp.c             |    4 +--
 libavformat/rtspdec.c          |    2 +-
 libavformat/s337m.c            |    2 +-
 libavformat/samidec.c          |    2 +-
 libavformat/sapdec.c           |    2 +-
 libavformat/sbgdec.c           |    2 +-
 libavformat/sccdec.c           |    2 +-
 libavformat/sdr2.c             |    2 +-
 libavformat/sdsdec.c           |    2 +-
 libavformat/sdxdec.c           |    2 +-
 libavformat/segafilm.c         |    2 +-
 libavformat/serdec.c           |    2 +-
 libavformat/shortendec.c       |    2 +-
 libavformat/sierravmd.c        |    2 +-
 libavformat/siff.c             |    2 +-
 libavformat/smacker.c          |    2 +-
 libavformat/smjpegdec.c        |    2 +-
 libavformat/smush.c            |    2 +-
 libavformat/sol.c              |    2 +-
 libavformat/soxdec.c           |    2 +-
 libavformat/spdifdec.c         |    2 +-
 libavformat/srtdec.c           |    2 +-
 libavformat/stldec.c           |    2 +-
 libavformat/subviewer1dec.c    |    2 +-
 libavformat/subviewerdec.c     |    2 +-
 libavformat/supdec.c           |    2 +-
 libavformat/svag.c             |    2 +-
 libavformat/swfdec.c           |    2 +-
 libavformat/takdec.c           |    2 +-
 libavformat/tedcaptionsdec.c   |    2 +-
 libavformat/thp.c              |    2 +-
 libavformat/tiertexseq.c       |    2 +-
 libavformat/tmv.c              |    2 +-
 libavformat/tta.c              |    2 +-
 libavformat/txd.c              |    2 +-
 libavformat/ty.c               |    2 +-
 libavformat/vag.c              |    2 +-
 libavformat/vapoursynth.c      |    2 +-
 libavformat/vc1dec.c           |    2 +-
 libavformat/vc1test.c          |    2 +-
 libavformat/vividas.c          |    2 +-
 libavformat/vivo.c             |    2 +-
 libavformat/vocdec.c           |    2 +-
 libavformat/vpk.c              |    2 +-
 libavformat/vplayerdec.c       |    2 +-
 libavformat/vqf.c              |    2 +-
 libavformat/wavdec.c           |    4 +--
 libavformat/wc3movie.c         |    2 +-
 libavformat/webvttdec.c        |    2 +-
 libavformat/westwood_aud.c     |    2 +-
 libavformat/westwood_vqa.c     |    2 +-
 libavformat/wsddec.c           |    2 +-
 libavformat/wtvdec.c           |    2 +-
 libavformat/wvdec.c            |    2 +-
 libavformat/wvedec.c           |    2 +-
 libavformat/xa.c               |    2 +-
 libavformat/xmv.c              |    2 +-
 libavformat/xvag.c             |    2 +-
 libavformat/xwma.c             |    2 +-
 libavformat/yop.c              |    2 +-
 libavformat/yuv4mpegdec.c      |    2 +-
 214 files changed, 256 insertions(+), 256 deletions(-)

diff --git a/libavformat/3dostr.c b/libavformat/3dostr.c
index 3668e5f..6c49f75 100644
--- a/libavformat/3dostr.c
+++ b/libavformat/3dostr.c
@@ -22,7 +22,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int threedostr_probe(AVProbeData *p)
+static int threedostr_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "CTRL", 4) &&
         memcmp(p->buf, "SHDR", 4) &&
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index ead6d2b..a984fc9 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -81,7 +81,7 @@  typedef struct FourxmDemuxContext {
     AVRational fps;
 } FourxmDemuxContext;
 
-static int fourxm_probe(AVProbeData *p)
+static int fourxm_probe(const AVProbeData *p)
 {
     if ((AV_RL32(&p->buf[0]) != RIFF_TAG) ||
         (AV_RL32(&p->buf[8]) != FOURXMV_TAG))
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c
index 685458b..bd324a1 100644
--- a/libavformat/aacdec.c
+++ b/libavformat/aacdec.c
@@ -30,7 +30,7 @@ 
 
 #define ADTS_HEADER_SIZE 7
 
-static int adts_aac_probe(AVProbeData *p)
+static int adts_aac_probe(const AVProbeData *p)
 {
     int max_frames = 0, first_frames = 0;
     int fsize, frames;
diff --git a/libavformat/aadec.c b/libavformat/aadec.c
index d83f283..dc94061 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -360,7 +360,7 @@  static int aa_read_seek(AVFormatContext *s,
     return 1;
 }
 
-static int aa_probe(AVProbeData *p)
+static int aa_probe(const AVProbeData *p)
 {
     uint8_t *buf = p->buf;
 
diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index 2718061..3736b11 100644
--- a/libavformat/ac3dec.c
+++ b/libavformat/ac3dec.c
@@ -25,7 +25,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
+static int ac3_eac3_probe(const AVProbeData *p, enum AVCodecID expected_codec_id)
 {
     int max_frames, first_frames = 0, frames;
     const uint8_t *buf, *buf2, *end;
@@ -97,7 +97,7 @@  static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
 }
 
 #if CONFIG_AC3_DEMUXER
-static int ac3_probe(AVProbeData *p)
+static int ac3_probe(const AVProbeData *p)
 {
     return ac3_eac3_probe(p, AV_CODEC_ID_AC3);
 }
@@ -115,7 +115,7 @@  AVInputFormat ff_ac3_demuxer = {
 #endif
 
 #if CONFIG_EAC3_DEMUXER
-static int eac3_probe(AVProbeData *p)
+static int eac3_probe(const AVProbeData *p)
 {
     return ac3_eac3_probe(p, AV_CODEC_ID_EAC3);
 }
diff --git a/libavformat/acm.c b/libavformat/acm.c
index dcf8778..125352a 100644
--- a/libavformat/acm.c
+++ b/libavformat/acm.c
@@ -24,7 +24,7 @@ 
 #include "rawdec.h"
 #include "internal.h"
 
-static int acm_probe(AVProbeData *p)
+static int acm_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) != 0x97280301)
         return 0;
diff --git a/libavformat/act.c b/libavformat/act.c
index fe67411..26425ca 100644
--- a/libavformat/act.c
+++ b/libavformat/act.c
@@ -33,7 +33,7 @@  typedef struct{
     char second_packet;      ///< 1 - if temporary buffer contains valid (second) G.729 packet
 } ACTContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/adp.c b/libavformat/adp.c
index 3914857..56f302a 100644
--- a/libavformat/adp.c
+++ b/libavformat/adp.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int adp_probe(AVProbeData *p)
+static int adp_probe(const AVProbeData *p)
 {
     int i, changes = 0;
     uint8_t last = 0;
diff --git a/libavformat/ads.c b/libavformat/ads.c
index 73ea7c7..f25141b 100644
--- a/libavformat/ads.c
+++ b/libavformat/ads.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int ads_probe(AVProbeData *p)
+static int ads_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "SShd", 4) ||
         memcmp(p->buf+32, "SSbd", 4))
diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c
index a271e2a..1038a0d 100644
--- a/libavformat/adxdec.c
+++ b/libavformat/adxdec.c
@@ -34,7 +34,7 @@  typedef struct ADXDemuxerContext {
     int header_size;
 } ADXDemuxerContext;
 
-static int adx_probe(AVProbeData *p)
+static int adx_probe(const AVProbeData *p)
 {
     int offset;
     if (AV_RB16(p->buf) != 0x8000)
diff --git a/libavformat/aea.c b/libavformat/aea.c
index f795495..bdeed64 100644
--- a/libavformat/aea.c
+++ b/libavformat/aea.c
@@ -27,7 +27,7 @@ 
 
 #define AT1_SU_SIZE     212
 
-static int aea_read_probe(AVProbeData *p)
+static int aea_read_probe(const AVProbeData *p)
 {
     if (p->buf_size <= 2048+212)
         return 0;
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 7c701e0..fcedb0a 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -189,7 +189,7 @@  static int get_aiff_header(AVFormatContext *s, int size,
     return num_frames;
 }
 
-static int aiff_probe(AVProbeData *p)
+static int aiff_probe(const AVProbeData *p)
 {
     /* check file header */
     if (p->buf[0] == 'F' && p->buf[1] == 'O' &&
diff --git a/libavformat/aixdec.c b/libavformat/aixdec.c
index cad8a1e..b536bc4 100644
--- a/libavformat/aixdec.c
+++ b/libavformat/aixdec.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int aix_probe(AVProbeData *p)
+static int aix_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('A','I','X','F') ||
         AV_RB32(p->buf +  8) != 0x01000014 ||
diff --git a/libavformat/amr.c b/libavformat/amr.c
index de34705..42840a5 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -71,7 +71,7 @@  static int amr_write_packet(AVFormatContext *s, AVPacket *pkt)
 }
 #endif /* CONFIG_AMR_MUXER */
 
-static int amr_probe(AVProbeData *p)
+static int amr_probe(const AVProbeData *p)
 {
     // Only check for "#!AMR" which could be amr-wb, amr-nb.
     // This will also trigger multichannel files: "#!AMR_MC1.0\n" and
@@ -176,7 +176,7 @@  AVInputFormat ff_amr_demuxer = {
 #endif
 
 #if CONFIG_AMRNB_DEMUXER
-static int amrnb_probe(AVProbeData *p)
+static int amrnb_probe(const AVProbeData *p)
 {
     int mode, i = 0, valid = 0, invalid = 0;
     const uint8_t *b = p->buf;
@@ -232,7 +232,7 @@  AVInputFormat ff_amrnb_demuxer = {
 #endif
 
 #if CONFIG_AMRWB_DEMUXER
-static int amrwb_probe(AVProbeData *p)
+static int amrwb_probe(const AVProbeData *p)
 {
     int mode, i = 0, valid = 0, invalid = 0;
     const uint8_t *b = p->buf;
diff --git a/libavformat/anm.c b/libavformat/anm.c
index a5ad2fd..9af3a41 100644
--- a/libavformat/anm.c
+++ b/libavformat/anm.c
@@ -47,7 +47,7 @@  typedef struct AnmDemuxContext {
 #define LPF_TAG  MKTAG('L','P','F',' ')
 #define ANIM_TAG MKTAG('A','N','I','M')
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     /* verify tags and video dimensions */
     if (AV_RL32(&p->buf[0])  == LPF_TAG &&
diff --git a/libavformat/apc.c b/libavformat/apc.c
index b180a50..835d1b0 100644
--- a/libavformat/apc.c
+++ b/libavformat/apc.c
@@ -25,7 +25,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int apc_probe(AVProbeData *p)
+static int apc_probe(const AVProbeData *p)
 {
     if (!strncmp(p->buf, "CRYO_APC", 8))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/ape.c b/libavformat/ape.c
index c06db78..977e6f3d 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -83,7 +83,7 @@  typedef struct APEContext {
     uint8_t  *bittable;
 } APEContext;
 
-static int ape_probe(AVProbeData * p)
+static int ape_probe(const AVProbeData * p)
 {
     int version = AV_RL16(p->buf+4);
     if (AV_RL32(p->buf) != MKTAG('M', 'A', 'C', ' '))
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 53cdd45..c8db9c6 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -66,7 +66,7 @@  typedef struct APNGDemuxContext {
  *     ...
  *     IDAT
  */
-static int apng_probe(AVProbeData *p)
+static int apng_probe(const AVProbeData *p)
 {
     GetByteContext gb;
     int state = 0;
diff --git a/libavformat/aqtitledec.c b/libavformat/aqtitledec.c
index f0e840b..8cc82a8 100644
--- a/libavformat/aqtitledec.c
+++ b/libavformat/aqtitledec.c
@@ -37,7 +37,7 @@  typedef struct {
     AVRational frame_rate;
 } AQTitleContext;
 
-static int aqt_probe(AVProbeData *p)
+static int aqt_probe(const AVProbeData *p)
 {
     int frame;
     const char *ptr = p->buf;
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 64a0b9d..57dc3b0 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -186,7 +186,7 @@  static void print_guid(ff_asf_guid *g)
 #define print_guid(g) while(0)
 #endif
 
-static int asf_probe(AVProbeData *pd)
+static int asf_probe(const AVProbeData *pd)
 {
     /* check file header */
     if (!ff_guidcmp(pd->buf, &ff_asf_header))
diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index b4b2698..8e7f044 100644
--- a/libavformat/asfdec_o.c
+++ b/libavformat/asfdec_o.c
@@ -147,7 +147,7 @@  typedef struct ASFContext {
 static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t size);
 static const GUIDParseTable *find_guid(ff_asf_guid guid);
 
-static int asf_probe(AVProbeData *pd)
+static int asf_probe(const AVProbeData *pd)
 {
     /* check file header */
     if (!ff_guidcmp(pd->buf, &ff_asf_header))
diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index d89c14e..f66b296 100644
--- a/libavformat/assdec.c
+++ b/libavformat/assdec.c
@@ -33,7 +33,7 @@  typedef struct ASSContext {
     unsigned readorder;
 } ASSContext;
 
-static int ass_probe(AVProbeData *p)
+static int ass_probe(const AVProbeData *p)
 {
     char buf[13];
     FFTextReader tr;
diff --git a/libavformat/astdec.c b/libavformat/astdec.c
index 4ba08c2..9d2174f 100644
--- a/libavformat/astdec.c
+++ b/libavformat/astdec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "ast.h"
 
-static int ast_probe(AVProbeData *p)
+static int ast_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('S','T','R','M'))
         return 0;
diff --git a/libavformat/au.c b/libavformat/au.c
index 0b2b7ea..cb48e67 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -57,7 +57,7 @@  static const AVCodecTag codec_au_tags[] = {
 
 #if CONFIG_AU_DEMUXER
 
-static int au_probe(AVProbeData *p)
+static int au_probe(const AVProbeData *p)
 {
     if (p->buf[0] == '.' && p->buf[1] == 's' &&
         p->buf[2] == 'n' && p->buf[3] == 'd')
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 619f004..71af0ac 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -702,7 +702,7 @@  typedef struct AVInputFormat {
      * The buffer provided is guaranteed to be AVPROBE_PADDING_SIZE bytes
      * big so you do not have to check for that unless you need more.
      */
-    int (*read_probe)(AVProbeData *);
+    int (*read_probe)(const AVProbeData *);
 
     /**
      * Read the format header and initialize the AVFormatContext
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 24aef6b..bae9220 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1920,7 +1920,7 @@  static int avi_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int avi_probe(AVProbeData *p)
+static int avi_probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/avr.c b/libavformat/avr.c
index 294160e..c4ce701 100644
--- a/libavformat/avr.c
+++ b/libavformat/avr.c
@@ -24,7 +24,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int avr_probe(AVProbeData *p)
+static int avr_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('2', 'B', 'I', 'T'))
         return 0;
diff --git a/libavformat/avs.c b/libavformat/avs.c
index 62f5a42..47fa410 100644
--- a/libavformat/avs.c
+++ b/libavformat/avs.c
@@ -50,7 +50,7 @@  typedef enum avs_block_type {
     AVS_GAME_DATA = 0x04,
 } AvsBlockType;
 
-static int avs_probe(AVProbeData * p)
+static int avs_probe(const AVProbeData * p)
 {
     const uint8_t *d;
 
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index f516806..4aefb04 100644
--- a/libavformat/bethsoftvid.c
+++ b/libavformat/bethsoftvid.c
@@ -55,7 +55,7 @@  typedef struct BVID_DemuxContext
 
 } BVID_DemuxContext;
 
-static int vid_probe(AVProbeData *p)
+static int vid_probe(const AVProbeData *p)
 {
     // little-endian VID tag, file starts with "VID\0"
     if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0))
diff --git a/libavformat/bfi.c b/libavformat/bfi.c
index 0dad658..29e2cf8 100644
--- a/libavformat/bfi.c
+++ b/libavformat/bfi.c
@@ -39,7 +39,7 @@  typedef struct BFIContext {
     int avflag;
 } BFIContext;
 
-static int bfi_probe(AVProbeData * p)
+static int bfi_probe(const AVProbeData * p)
 {
     /* Check file header */
     if (AV_RL32(p->buf) == MKTAG('B', 'F', '&', 'I'))
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 567a38c..631b8c4 100644
--- a/libavformat/bink.c
+++ b/libavformat/bink.c
@@ -59,7 +59,7 @@  typedef struct BinkDemuxContext {
     int smush_size;
 } BinkDemuxContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int smush = AV_RN32(p->buf) == AV_RN32("SMUS");
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index 0b499d9..d492174 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -126,7 +126,7 @@  static void predict_width(AVCodecParameters *par, uint64_t fsize, int got_width)
         par->width = fsize > 4000 ? (160<<3) : (80<<3);
 }
 
-static int bin_probe(AVProbeData *p)
+static int bin_probe(const AVProbeData *p)
 {
     const uint8_t *d = p->buf;
     int magic = 0, sauce = 0;
@@ -204,7 +204,7 @@  static int bintext_read_header(AVFormatContext *s)
 #endif /* CONFIG_BINTEXT_DEMUXER */
 
 #if CONFIG_XBIN_DEMUXER
-static int xbin_probe(AVProbeData *p)
+static int xbin_probe(const AVProbeData *p)
 {
     const uint8_t *d = p->buf;
 
@@ -302,7 +302,7 @@  static const uint8_t idf_magic[] = {
     0x04, 0x31, 0x2e, 0x34, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x15, 0x00
 };
 
-static int idf_probe(AVProbeData *p)
+static int idf_probe(const AVProbeData *p)
 {
     if (p->buf_size < sizeof(idf_magic))
         return 0;
diff --git a/libavformat/bit.c b/libavformat/bit.c
index 76aae2d..0aacfc7 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -30,7 +30,7 @@ 
 #define BIT_1      0x81
 
 #if CONFIG_BIT_DEMUXER
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     int i = 0, j, valid = 0;
 
diff --git a/libavformat/boadec.c b/libavformat/boadec.c
index 730e957..495090c 100644
--- a/libavformat/boadec.c
+++ b/libavformat/boadec.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if (p->buf_size < 2096)
         return 0;
diff --git a/libavformat/brstm.c b/libavformat/brstm.c
index 87690e3..e8a1eaa 100644
--- a/libavformat/brstm.c
+++ b/libavformat/brstm.c
@@ -38,7 +38,7 @@  typedef struct BRSTMDemuxContext {
     int         little_endian;
 } BRSTMDemuxContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) == MKTAG('R','S','T','M') &&
         (AV_RL16(p->buf + 4) == 0xFFFE ||
@@ -47,7 +47,7 @@  static int probe(AVProbeData *p)
     return 0;
 }
 
-static int probe_bfstm(AVProbeData *p)
+static int probe_bfstm(const AVProbeData *p)
 {
     if ((AV_RL32(p->buf) == MKTAG('F','S','T','M') ||
          AV_RL32(p->buf) == MKTAG('C','S','T','M')) &&
diff --git a/libavformat/c93.c b/libavformat/c93.c
index b1a245a..8aa80b5 100644
--- a/libavformat/c93.c
+++ b/libavformat/c93.c
@@ -43,7 +43,7 @@  typedef struct C93DemuxContext {
     AVStream *audio;
 } C93DemuxContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     int i;
     int index = 1;
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 20956bc..8622859 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -48,7 +48,7 @@  typedef struct CafContext {
     int64_t data_size;              ///< raw data size, in bytes
 } CafContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) == MKBETAG('c','a','f','f') && AV_RB16(&p->buf[4]) == 1)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/cavsvideodec.c b/libavformat/cavsvideodec.c
index b4da58e..8900b97 100644
--- a/libavformat/cavsvideodec.c
+++ b/libavformat/cavsvideodec.c
@@ -30,7 +30,7 @@ 
 #define CAVS_VIDEO_EDIT_CODE      0x000001b7
 #define CAVS_PROFILE_JIZHUN       0x20
 
-static int cavsvideo_probe(AVProbeData *p)
+static int cavsvideo_probe(const AVProbeData *p)
 {
     uint32_t code= -1;
     int pic=0, seq=0, slice_pos = 0;
diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c
index 94a063c..9aacadd 100644
--- a/libavformat/cdxl.c
+++ b/libavformat/cdxl.c
@@ -40,7 +40,7 @@  typedef struct CDXLDemuxContext {
     int64_t     filesize;
 } CDXLDemuxContext;
 
-static int cdxl_read_probe(AVProbeData *p)
+static int cdxl_read_probe(const AVProbeData *p)
 {
     int score = AVPROBE_SCORE_EXTENSION + 10;
 
diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
index de34fb9..d27ebbb 100644
--- a/libavformat/cinedec.c
+++ b/libavformat/cinedec.c
@@ -56,7 +56,7 @@  enum {
 #define CFA_BLGRAY  0x20000000U
 #define CFA_BRGRAY  0x10000000U
 
-static int cine_read_probe(AVProbeData *p)
+static int cine_read_probe(const AVProbeData *p)
 {
     int HeaderSize;
     if (p->buf[0] == 'C' && p->buf[1] == 'I' &&  // Type
diff --git a/libavformat/codec2.c b/libavformat/codec2.c
index 28dbbd8..0d7c488 100644
--- a/libavformat/codec2.c
+++ b/libavformat/codec2.c
@@ -43,7 +43,7 @@  typedef struct {
     int frames_per_packet;
 } Codec2Context;
 
-static int codec2_probe(AVProbeData *p)
+static int codec2_probe(const AVProbeData *p)
 {
     //must start wih C0 DE C2
     if (AV_RB24(p->buf) != AVPRIV_CODEC2_MAGIC) {
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index d65da55..b80294e 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -68,7 +68,7 @@  typedef struct {
     int segment_time_metadata;
 } ConcatContext;
 
-static int concat_probe(AVProbeData *probe)
+static int concat_probe(const AVProbeData *probe)
 {
     return memcmp(probe->buf, "ffconcat version 1.0", 20) ?
            0 : AVPROBE_SCORE_MAX;
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index f800683..eed149c 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2302,7 +2302,7 @@  static int dash_read_seek(AVFormatContext *s, int stream_index, int64_t timestam
     return ret;
 }
 
-static int dash_probe(AVProbeData *p)
+static int dash_probe(const AVProbeData *p)
 {
     if (!av_stristr(p->buf, "<MPD"))
         return 0;
diff --git a/libavformat/davs2.c b/libavformat/davs2.c
index df2667f..59f41fd 100644
--- a/libavformat/davs2.c
+++ b/libavformat/davs2.c
@@ -31,7 +31,7 @@ 
 #define ISUNIT(x) ( ISSQH(x) || ISEND(x) || (x) == 0xB2 || ISPIC(x) || (x) == 0xB5 || (x) == 0xB7 )
 #define ISAVS2(x) ((x) == 0x20 || (x) == 0x22 || (x) == 0x30 || (x) == 0x32 )
 
-static int avs2_probe(AVProbeData *p)
+static int avs2_probe(const AVProbeData *p)
 {
     uint32_t code= -1, hds=0, pic=0, seq=0;
     uint8_t state=0;
diff --git a/libavformat/dcstr.c b/libavformat/dcstr.c
index 6035dd4..9041a86 100644
--- a/libavformat/dcstr.c
+++ b/libavformat/dcstr.c
@@ -22,7 +22,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int dcstr_probe(AVProbeData *p)
+static int dcstr_probe(const AVProbeData *p)
 {
     if (p->buf_size < 224 || memcmp(p->buf + 213, "Sega Stream", 11))
         return 0;
diff --git a/libavformat/dfa.c b/libavformat/dfa.c
index 9858ee7..a5ecfd9 100644
--- a/libavformat/dfa.c
+++ b/libavformat/dfa.c
@@ -25,7 +25,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int dfa_probe(AVProbeData *p)
+static int dfa_probe(const AVProbeData *p)
 {
     if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
         return 0;
diff --git a/libavformat/dhav.c b/libavformat/dhav.c
index 9948783..e6f61ee 100644
--- a/libavformat/dhav.c
+++ b/libavformat/dhav.c
@@ -49,7 +49,7 @@  typedef struct DHAVStream {
     int64_t pts;
 } DHAVStream;
 
-static int dhav_probe(AVProbeData *p)
+static int dhav_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, "DAHUA", 5))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/diracdec.c b/libavformat/diracdec.c
index e061ba5..d9294a1 100644
--- a/libavformat/diracdec.c
+++ b/libavformat/diracdec.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int dirac_probe(AVProbeData *p)
+static int dirac_probe(const AVProbeData *p)
 {
     unsigned size;
     if (AV_RL32(p->buf) != MKTAG('B', 'B', 'C', 'D'))
diff --git a/libavformat/dnxhddec.c b/libavformat/dnxhddec.c
index 0ad51b5..2d1d9fb 100644
--- a/libavformat/dnxhddec.c
+++ b/libavformat/dnxhddec.c
@@ -25,7 +25,7 @@ 
 #include "rawdec.h"
 #include "libavcodec/dnxhddata.h"
 
-static int dnxhd_probe(AVProbeData *p)
+static int dnxhd_probe(const AVProbeData *p)
 {
     int w, h, compression_id;
     if (p->buf_size < 0x2c)
diff --git a/libavformat/dsfdec.c b/libavformat/dsfdec.c
index 5e06fd6..afb2463 100644
--- a/libavformat/dsfdec.c
+++ b/libavformat/dsfdec.c
@@ -30,7 +30,7 @@  typedef struct {
     uint64_t data_size;
 } DSFContext;
 
-static int dsf_probe(AVProbeData *p)
+static int dsf_probe(const AVProbeData *p)
 {
     if (p->buf_size < 12 || memcmp(p->buf, "DSD ", 4) || AV_RL64(p->buf + 4) != 28)
         return 0;
diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c
index bd4f3ad..244622e 100644
--- a/libavformat/dsicin.c
+++ b/libavformat/dsicin.c
@@ -60,7 +60,7 @@  typedef struct CinDemuxContext {
 } CinDemuxContext;
 
 
-static int cin_probe(AVProbeData *p)
+static int cin_probe(const AVProbeData *p)
 {
     /* header starts with this special marker */
     if (AV_RL32(&p->buf[0]) != 0x55AA0000)
diff --git a/libavformat/dss.c b/libavformat/dss.c
index 083eb4a..e5b0be9 100644
--- a/libavformat/dss.c
+++ b/libavformat/dss.c
@@ -58,7 +58,7 @@  typedef struct DSSDemuxContext {
     int dss_header_size;
 } DSSDemuxContext;
 
-static int dss_probe(AVProbeData *p)
+static int dss_probe(const AVProbeData *p)
 {
     if (   AV_RL32(p->buf) != MKTAG(0x2, 'd', 's', 's')
         && AV_RL32(p->buf) != MKTAG(0x3, 'd', 's', 's'))
diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c
index a3e52cd..8ec7925 100644
--- a/libavformat/dtsdec.c
+++ b/libavformat/dtsdec.c
@@ -29,7 +29,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int dts_probe(AVProbeData *p)
+static int dts_probe(const AVProbeData *p)
 {
     const uint8_t *buf, *bufp;
     uint32_t state = -1;
diff --git a/libavformat/dtshddec.c b/libavformat/dtshddec.c
index 1bd403c..b1eb7ff 100644
--- a/libavformat/dtshddec.c
+++ b/libavformat/dtshddec.c
@@ -43,7 +43,7 @@  typedef struct DTSHDDemuxContext {
     uint64_t    data_end;
 } DTSHDDemuxContext;
 
-static int dtshd_probe(AVProbeData *p)
+static int dtshd_probe(const AVProbeData *p)
 {
     if (AV_RB64(p->buf) == DTSHDHDR)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 06de044..eb44e0a 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -587,7 +587,7 @@  static int dv_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int dv_probe(AVProbeData *p)
+static int dv_probe(const AVProbeData *p)
 {
     unsigned marker_pos = 0;
     int i;
diff --git a/libavformat/dvbsub.c b/libavformat/dvbsub.c
index 3d2f704..ba5d56a 100644
--- a/libavformat/dvbsub.c
+++ b/libavformat/dvbsub.c
@@ -25,7 +25,7 @@ 
 #include "rawdec.h"
 
 
-static int dvbsub_probe(AVProbeData *p)
+static int dvbsub_probe(const AVProbeData *p)
 {
     int i, j, k;
     const uint8_t *end = p->buf + p->buf_size;
diff --git a/libavformat/dvbtxt.c b/libavformat/dvbtxt.c
index 6828738..354d094 100644
--- a/libavformat/dvbtxt.c
+++ b/libavformat/dvbtxt.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int dvbtxt_probe(AVProbeData *p)
+static int dvbtxt_probe(const AVProbeData *p)
 {
     const uint8_t *end = p->buf + p->buf_size;
     const uint8_t *buf;
diff --git a/libavformat/dxa.c b/libavformat/dxa.c
index 5019390..298cda0 100644
--- a/libavformat/dxa.c
+++ b/libavformat/dxa.c
@@ -37,7 +37,7 @@  typedef struct DXAContext {
     int readvid;
 }DXAContext;
 
-static int dxa_probe(AVProbeData *p)
+static int dxa_probe(const AVProbeData *p)
 {
     int w, h;
     if (p->buf_size < 15)
diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index 97eb66e..b05d5c8 100644
--- a/libavformat/eacdata.c
+++ b/libavformat/eacdata.c
@@ -36,7 +36,7 @@  typedef struct CdataDemuxContext {
   unsigned int audio_pts;
 } CdataDemuxContext;
 
-static int cdata_probe(AVProbeData *p)
+static int cdata_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index bfd3fed..6dbc3e3 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -458,7 +458,7 @@  static int process_ea_header(AVFormatContext *s)
     return 1;
 }
 
-static int ea_probe(AVProbeData *p)
+static int ea_probe(const AVProbeData *p)
 {
     unsigned big_endian, size;
 
diff --git a/libavformat/epafdec.c b/libavformat/epafdec.c
index 0cd9627..16239ee 100644
--- a/libavformat/epafdec.c
+++ b/libavformat/epafdec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int epaf_probe(AVProbeData *p)
+static int epaf_probe(const AVProbeData *p)
 {
     if (((AV_RL32(p->buf) == MKTAG('f','a','p',' ') &&
           AV_RL32(p->buf + 8) == 1) ||
diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c
index 6f7133e..45c92f1 100644
--- a/libavformat/ffmetadec.c
+++ b/libavformat/ffmetadec.c
@@ -26,7 +26,7 @@ 
 #include "internal.h"
 #include "libavutil/dict.h"
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if(!memcmp(p->buf, ID_STRING, strlen(ID_STRING)))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c
index 4b288b3..c7d1ede 100644
--- a/libavformat/fitsdec.c
+++ b/libavformat/fitsdec.c
@@ -39,7 +39,7 @@  typedef struct FITSContext {
     int64_t pts;
 } FITSContext;
 
-static int fits_probe(AVProbeData *p)
+static int fits_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     if (!memcmp(b, "SIMPLE  =                    T", 30))
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index a032378..ea803f5 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -211,7 +211,7 @@  fail:
     return ret;
 }
 
-static int raw_flac_probe(AVProbeData *p)
+static int raw_flac_probe(const AVProbeData *p)
 {
     if ((p->buf[2] & 0xF0) == 0)    // blocksize code invalid
         return 0;
@@ -227,7 +227,7 @@  static int raw_flac_probe(AVProbeData *p)
     return AVPROBE_SCORE_EXTENSION / 4 + 1;
 }
 
-static int flac_probe(AVProbeData *p)
+static int flac_probe(const AVProbeData *p)
 {
     if ((AV_RB16(p->buf) & 0xFFFE) == 0xFFF8)
         return raw_flac_probe(p);
diff --git a/libavformat/flic.c b/libavformat/flic.c
index 7c62cb4..d7844ce 100644
--- a/libavformat/flic.c
+++ b/libavformat/flic.c
@@ -57,7 +57,7 @@  typedef struct FlicDemuxContext {
     int frame_number;
 } FlicDemuxContext;
 
-static int flic_probe(AVProbeData *p)
+static int flic_probe(const AVProbeData *p)
 {
     int magic_number;
 
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 972e333..92455c7 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -77,7 +77,7 @@  typedef struct FLVContext {
     int64_t time_pos;
 } FLVContext;
 
-static int probe(AVProbeData *p, int live)
+static int probe(const AVProbeData *p, int live)
 {
     const uint8_t *d = p->buf;
     unsigned offset = AV_RB32(d + 5);
@@ -96,12 +96,12 @@  static int probe(AVProbeData *p, int live)
     return 0;
 }
 
-static int flv_probe(AVProbeData *p)
+static int flv_probe(const AVProbeData *p)
 {
     return probe(p, 0);
 }
 
-static int live_flv_probe(AVProbeData *p)
+static int live_flv_probe(const AVProbeData *p)
 {
     return probe(p, 1);
 }
diff --git a/libavformat/frmdec.c b/libavformat/frmdec.c
index 2f6b726..9a962f37 100644
--- a/libavformat/frmdec.c
+++ b/libavformat/frmdec.c
@@ -42,7 +42,7 @@  typedef struct {
     int count;
 } FrmContext;
 
-static int frm_read_probe(AVProbeData *p)
+static int frm_read_probe(const AVProbeData *p)
 {
     if (p->buf_size > 8 &&
         p->buf[0] == 'F' && p->buf[1] == 'R' && p->buf[2] == 'M' &&
diff --git a/libavformat/fsb.c b/libavformat/fsb.c
index 4f59576..faad6b1 100644
--- a/libavformat/fsb.c
+++ b/libavformat/fsb.c
@@ -25,7 +25,7 @@ 
 #include "avio.h"
 #include "internal.h"
 
-static int fsb_probe(AVProbeData *p)
+static int fsb_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "FSB", 3) || p->buf[3] - '0' < 1 || p->buf[3] - '0' > 5)
         return 0;
diff --git a/libavformat/gdv.c b/libavformat/gdv.c
index 3ead383..b698497 100644
--- a/libavformat/gdv.c
+++ b/libavformat/gdv.c
@@ -34,7 +34,7 @@  typedef struct GDVContext {
     unsigned pal[256];
 } GDVContext;
 
-static int gdv_read_probe(AVProbeData *p)
+static int gdv_read_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) == 0x29111994)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/genh.c b/libavformat/genh.c
index dd4e76d..61adf49 100644
--- a/libavformat/genh.c
+++ b/libavformat/genh.c
@@ -29,7 +29,7 @@  typedef struct GENHDemuxContext {
     unsigned interleave_size;
 } GENHDemuxContext;
 
-static int genh_probe(AVProbeData *p)
+static int genh_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('G','E','N','H'))
         return 0;
diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c
index 7dc67ba..a31644c 100644
--- a/libavformat/gifdec.c
+++ b/libavformat/gifdec.c
@@ -69,7 +69,7 @@  typedef struct GIFDemuxContext {
  */
 #define GIF_MIN_DELAY       2
 
-static int gif_probe(AVProbeData *p)
+static int gif_probe(const AVProbeData *p)
 {
     /* check magick */
     if (memcmp(p->buf, gif87a_sig, 6) && memcmp(p->buf, gif89a_sig, 6))
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index 1627106..1044cde 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -34,7 +34,7 @@  typedef struct GSMDemuxerContext {
     int sample_rate;
 } GSMDemuxerContext;
 
-static int gsm_probe(AVProbeData *p)
+static int gsm_probe(const AVProbeData *p)
 {
     int valid = 0, invalid = 0;
     uint8_t *b = p->buf;
diff --git a/libavformat/gxf.c b/libavformat/gxf.c
index 399f745..49364b7 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -86,7 +86,7 @@  static int parse_packet_header(AVIOContext *pb, GXFPktType *type, int *length) {
 /**
  * @brief check if file starts with a PKT_MAP header
  */
-static int gxf_probe(AVProbeData *p) {
+static int gxf_probe(const AVProbeData *p) {
     static const uint8_t startcode[] = {0, 0, 0, 0, 1, 0xbc}; // start with map packet
     static const uint8_t endcode[] = {0, 0, 0, 0, 0xe1, 0xe2};
     if (!memcmp(p->buf, startcode, sizeof(startcode)) &&
diff --git a/libavformat/h261dec.c b/libavformat/h261dec.c
index a1d6821..b5161ff 100644
--- a/libavformat/h261dec.c
+++ b/libavformat/h261dec.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int h261_probe(AVProbeData *p)
+static int h261_probe(const AVProbeData *p)
 {
     int i;
     int valid_psc=0;
diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c
index 145fb85..0736158 100644
--- a/libavformat/h263dec.c
+++ b/libavformat/h263dec.c
@@ -22,7 +22,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int h263_probe(AVProbeData *p)
+static int h263_probe(const AVProbeData *p)
 {
     uint64_t code= -1;
     int i;
diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c
index 85d7163..199e87f 100644
--- a/libavformat/h264dec.c
+++ b/libavformat/h264dec.c
@@ -28,7 +28,7 @@ 
 #define MAX_SPS_COUNT          32
 #define MAX_PPS_COUNT         256
 
-static int h264_probe(AVProbeData *p)
+static int h264_probe(const AVProbeData *p)
 {
     uint32_t code = -1;
     int sps = 0, pps = 0, idr = 0, res = 0, sli = 0;
diff --git a/libavformat/hcom.c b/libavformat/hcom.c
index 35515cc..0d1736b 100644
--- a/libavformat/hcom.c
+++ b/libavformat/hcom.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int hcom_probe(AVProbeData *p)
+static int hcom_probe(const AVProbeData *p)
 {
     if (p->buf_size < 132)
         return 0;
diff --git a/libavformat/hevcdec.c b/libavformat/hevcdec.c
index aaab0ff..255f03b 100644
--- a/libavformat/hevcdec.c
+++ b/libavformat/hevcdec.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "rawdec.h"
 
-static int hevc_probe(AVProbeData *p)
+static int hevc_probe(const AVProbeData *p)
 {
     uint32_t code = -1;
     int vps = 0, sps = 0, pps = 0, irap = 0;
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 0721b40..4e38d25 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2285,7 +2285,7 @@  static int hls_read_seek(AVFormatContext *s, int stream_index,
     return 0;
 }
 
-static int hls_probe(AVProbeData *p)
+static int hls_probe(const AVProbeData *p)
 {
     /* Require #EXTM3U at the start, and either one of the ones below
      * somewhere for a proper match. */
diff --git a/libavformat/hnm.c b/libavformat/hnm.c
index 24d4e80..40ef5c0 100644
--- a/libavformat/hnm.c
+++ b/libavformat/hnm.c
@@ -52,7 +52,7 @@  typedef struct Hnm4DemuxContext {
     AVPacket vpkt;
 } Hnm4DemuxContext;
 
-static int hnm_probe(AVProbeData *p)
+static int hnm_probe(const AVProbeData *p)
 {
     if (p->buf_size < 4)
         return 0;
diff --git a/libavformat/icodec.c b/libavformat/icodec.c
index f33fa11..f9b0015 100644
--- a/libavformat/icodec.c
+++ b/libavformat/icodec.c
@@ -43,7 +43,7 @@  typedef struct {
     IcoImage * images;
 } IcoDemuxContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     unsigned i, frames, checked = 0;
 
diff --git a/libavformat/idcin.c b/libavformat/idcin.c
index cf69102..0b10581 100644
--- a/libavformat/idcin.c
+++ b/libavformat/idcin.c
@@ -91,7 +91,7 @@  typedef struct IdcinDemuxContext {
     int64_t first_pkt_pos;
 } IdcinDemuxContext;
 
-static int idcin_probe(AVProbeData *p)
+static int idcin_probe(const AVProbeData *p)
 {
     unsigned int number, sample_rate;
     unsigned int w, h;
diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c
index 8fd67a6..1db4cce 100644
--- a/libavformat/idroqdec.c
+++ b/libavformat/idroqdec.c
@@ -59,7 +59,7 @@  typedef struct RoqDemuxContext {
 
 } RoqDemuxContext;
 
-static int roq_probe(AVProbeData *p)
+static int roq_probe(const AVProbeData *p)
 {
     if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) ||
         (AV_RL32(&p->buf[2]) != 0xFFFFFFFF))
diff --git a/libavformat/iff.c b/libavformat/iff.c
index 4cf17f6..f4d806b 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -142,7 +142,7 @@  static int get_metadata(AVFormatContext *s,
     return 0;
 }
 
-static int iff_probe(AVProbeData *p)
+static int iff_probe(const AVProbeData *p)
 {
     const uint8_t *d = p->buf;
 
diff --git a/libavformat/ilbc.c b/libavformat/ilbc.c
index 50e3c3c..ba11953 100644
--- a/libavformat/ilbc.c
+++ b/libavformat/ilbc.c
@@ -59,7 +59,7 @@  static int ilbc_write_packet(AVFormatContext *s, AVPacket *pkt)
     return 0;
 }
 
-static int ilbc_probe(AVProbeData *p)
+static int ilbc_probe(const AVProbeData *p)
 {
     // Only check for "#!iLBC" which matches both formats
     if (!memcmp(p->buf, mode20_header, 6))
diff --git a/libavformat/img2_alias_pix.c b/libavformat/img2_alias_pix.c
index c2650ad..2fa3b28 100644
--- a/libavformat/img2_alias_pix.c
+++ b/libavformat/img2_alias_pix.c
@@ -22,7 +22,7 @@ 
 #include "img2.h"
 #include "libavcodec/bytestream.h"
 
-static int alias_pix_read_probe(AVProbeData *p)
+static int alias_pix_read_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     const uint8_t *end = b + p->buf_size;
diff --git a/libavformat/img2_brender_pix.c b/libavformat/img2_brender_pix.c
index ae6b3dd..b8ac3d2 100644
--- a/libavformat/img2_brender_pix.c
+++ b/libavformat/img2_brender_pix.c
@@ -22,7 +22,7 @@ 
 #include "img2.h"
 #include "libavutil/intreadwrite.h"
 
-static int brender_read_probe(AVProbeData *p)
+static int brender_read_probe(const AVProbeData *p)
 {
     static const uint8_t brender_magic[16] = {
         0,0,0,0x12,0,0,0,8,0,0,0,2,0,0,0,2
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 685f0cd..fe45c5e 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -160,7 +160,7 @@  fail:
     return -1;
 }
 
-static int img_read_probe(AVProbeData *p)
+static int img_read_probe(const AVProbeData *p)
 {
     if (p->filename && ff_guess_image2_codec(p->filename)) {
         if (av_filename_number_test(p->filename))
@@ -629,7 +629,7 @@  AVInputFormat ff_image2pipe_demuxer = {
 };
 #endif
 
-static int bmp_probe(AVProbeData *p)
+static int bmp_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int ihsize;
@@ -647,7 +647,7 @@  static int bmp_probe(AVProbeData *p)
     return AVPROBE_SCORE_EXTENSION / 4;
 }
 
-static int dds_probe(AVProbeData *p)
+static int dds_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -658,7 +658,7 @@  static int dds_probe(AVProbeData *p)
     return 0;
 }
 
-static int dpx_probe(AVProbeData *p)
+static int dpx_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int w, h;
@@ -676,7 +676,7 @@  static int dpx_probe(AVProbeData *p)
     return 0;
 }
 
-static int exr_probe(AVProbeData *p)
+static int exr_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -685,7 +685,7 @@  static int exr_probe(AVProbeData *p)
     return 0;
 }
 
-static int j2k_probe(AVProbeData *p)
+static int j2k_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -695,7 +695,7 @@  static int j2k_probe(AVProbeData *p)
     return 0;
 }
 
-static int jpeg_probe(AVProbeData *p)
+static int jpeg_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int i, state = SOI;
@@ -770,7 +770,7 @@  static int jpeg_probe(AVProbeData *p)
     return AVPROBE_SCORE_EXTENSION / 8;
 }
 
-static int jpegls_probe(AVProbeData *p)
+static int jpegls_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -779,7 +779,7 @@  static int jpegls_probe(AVProbeData *p)
     return 0;
 }
 
-static int pcx_probe(AVProbeData *p)
+static int pcx_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -800,7 +800,7 @@  static int pcx_probe(AVProbeData *p)
     return AVPROBE_SCORE_EXTENSION + 1;
 }
 
-static int qdraw_probe(AVProbeData *p)
+static int qdraw_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -816,7 +816,7 @@  static int qdraw_probe(AVProbeData *p)
     return 0;
 }
 
-static int pictor_probe(AVProbeData *p)
+static int pictor_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -825,7 +825,7 @@  static int pictor_probe(AVProbeData *p)
     return 0;
 }
 
-static int png_probe(AVProbeData *p)
+static int png_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -834,7 +834,7 @@  static int png_probe(AVProbeData *p)
     return 0;
 }
 
-static int psd_probe(AVProbeData *p)
+static int psd_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int ret = 0;
@@ -862,7 +862,7 @@  static int psd_probe(AVProbeData *p)
     return AVPROBE_SCORE_EXTENSION + ret;
 }
 
-static int sgi_probe(AVProbeData *p)
+static int sgi_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -874,7 +874,7 @@  static int sgi_probe(AVProbeData *p)
     return 0;
 }
 
-static int sunrast_probe(AVProbeData *p)
+static int sunrast_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -883,7 +883,7 @@  static int sunrast_probe(AVProbeData *p)
     return 0;
 }
 
-static int svg_probe(AVProbeData *p)
+static int svg_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     const uint8_t *end = p->buf + p->buf_size;
@@ -903,7 +903,7 @@  static int svg_probe(AVProbeData *p)
     return 0;
 }
 
-static int tiff_probe(AVProbeData *p)
+static int tiff_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -913,7 +913,7 @@  static int tiff_probe(AVProbeData *p)
     return 0;
 }
 
-static int webp_probe(AVProbeData *p)
+static int webp_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -941,39 +941,39 @@  static inline int pnm_probe(const AVProbeData *p)
     return 0;
 }
 
-static int pbm_probe(AVProbeData *p)
+static int pbm_probe(const AVProbeData *p)
 {
     return pnm_magic_check(p, 1) || pnm_magic_check(p, 4) ? pnm_probe(p) : 0;
 }
 
-static inline int pgmx_probe(AVProbeData *p)
+static inline int pgmx_probe(const AVProbeData *p)
 {
     return pnm_magic_check(p, 2) || pnm_magic_check(p, 5) ? pnm_probe(p) : 0;
 }
 
-static int pgm_probe(AVProbeData *p)
+static int pgm_probe(const AVProbeData *p)
 {
     int ret = pgmx_probe(p);
     return ret && !av_match_ext(p->filename, "pgmyuv") ? ret : 0;
 }
 
-static int pgmyuv_probe(AVProbeData *p) // custom FFmpeg format recognized by file extension
+static int pgmyuv_probe(const AVProbeData *p) // custom FFmpeg format recognized by file extension
 {
     int ret = pgmx_probe(p);
     return ret && av_match_ext(p->filename, "pgmyuv") ? ret : 0;
 }
 
-static int ppm_probe(AVProbeData *p)
+static int ppm_probe(const AVProbeData *p)
 {
     return pnm_magic_check(p, 3) || pnm_magic_check(p, 6) ? pnm_probe(p) : 0;
 }
 
-static int pam_probe(AVProbeData *p)
+static int pam_probe(const AVProbeData *p)
 {
     return pnm_magic_check(p, 7) ? pnm_probe(p) : 0;
 }
 
-static int xpm_probe(AVProbeData *p)
+static int xpm_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
@@ -982,7 +982,7 @@  static int xpm_probe(AVProbeData *p)
     return 0;
 }
 
-static int xwd_probe(AVProbeData *p)
+static int xwd_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     unsigned width, bpp, bpad, lsize;
@@ -1012,7 +1012,7 @@  static int xwd_probe(AVProbeData *p)
     return AVPROBE_SCORE_MAX / 2 + 1;
 }
 
-static int gif_probe(AVProbeData *p)
+static int gif_probe(const AVProbeData *p)
 {
     /* check magick */
     if (memcmp(p->buf, gif87a_sig, 6) && memcmp(p->buf, gif89a_sig, 6))
diff --git a/libavformat/ingenientdec.c b/libavformat/ingenientdec.c
index c0ba61e..1b437b4 100644
--- a/libavformat/ingenientdec.c
+++ b/libavformat/ingenientdec.c
@@ -24,7 +24,7 @@ 
 #include "libavutil/intreadwrite.h"
 
 // http://multimedia.cx/ingenient.txt
-static int ingenient_probe(AVProbeData *p)
+static int ingenient_probe(const AVProbeData *p)
 {
     if (   AV_RN32(p->buf) != AV_RN32("MJPG")
         || p->buf_size < 50
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index 7f5a8c6..137c857 100644
--- a/libavformat/ipmovie.c
+++ b/libavformat/ipmovie.c
@@ -614,7 +614,7 @@  static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb,
 
 static const char signature[] = "Interplay MVE File\x1A\0\x1A";
 
-static int ipmovie_probe(AVProbeData *p)
+static int ipmovie_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     const uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
diff --git a/libavformat/ircamdec.c b/libavformat/ircamdec.c
index d376ffe..17bfb4e 100644
--- a/libavformat/ircamdec.c
+++ b/libavformat/ircamdec.c
@@ -26,7 +26,7 @@ 
 #include "pcm.h"
 #include "ircam.h"
 
-static int ircam_probe(AVProbeData *p)
+static int ircam_probe(const AVProbeData *p)
 {
     if ((p->buf[0] == 0x64 && p->buf[1] == 0xA3 && p->buf[3] == 0x00 &&
          p->buf[2] >=    1 && p->buf[2] <= 4) ||
diff --git a/libavformat/iss.c b/libavformat/iss.c
index 95b35dc..6d6aec2 100644
--- a/libavformat/iss.c
+++ b/libavformat/iss.c
@@ -58,7 +58,7 @@  static void get_token(AVIOContext *s, char *buf, int maxlen)
     buf[i] = 0; /* Ensure null terminated, but may be truncated */
 }
 
-static int iss_probe(AVProbeData *p)
+static int iss_probe(const AVProbeData *p)
 {
     if (strncmp(p->buf, ISS_SIG, ISS_SIG_LEN))
         return 0;
diff --git a/libavformat/iv8.c b/libavformat/iv8.c
index 077d905..449a422 100644
--- a/libavformat/iv8.c
+++ b/libavformat/iv8.c
@@ -22,7 +22,7 @@ 
 #include "internal.h"
 
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     // the single file I have starts with that, I do not know if others do, too
     if(   p->buf[0] == 1
diff --git a/libavformat/ivfdec.c b/libavformat/ivfdec.c
index 197c099..40ae464 100644
--- a/libavformat/ivfdec.c
+++ b/libavformat/ivfdec.c
@@ -23,7 +23,7 @@ 
 #include "riff.h"
 #include "libavutil/intreadwrite.h"
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) == MKTAG('D','K','I','F')
         && !AV_RL16(p->buf+4) && AV_RL16(p->buf+6) == 32)
diff --git a/libavformat/jacosubdec.c b/libavformat/jacosubdec.c
index f6be5df..50144f7 100644
--- a/libavformat/jacosubdec.c
+++ b/libavformat/jacosubdec.c
@@ -48,7 +48,7 @@  static int timed_line(const char *ptr)
             (sscanf(ptr, "@%u @%u %c", &fs, &fe, &c) == 3 && fs < fe));
 }
 
-static int jacosub_probe(AVProbeData *p)
+static int jacosub_probe(const AVProbeData *p)
 {
     const char *ptr     = p->buf;
     const char *ptr_end = p->buf + p->buf_size;
diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index b2c067f..18c81f0 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -52,7 +52,7 @@  typedef struct JVDemuxContext {
 
 #define MAGIC " Compression by John M Phillips Copyright (C) 1995 The Bitmap Brothers Ltd."
 
-static int read_probe(AVProbeData *pd)
+static int read_probe(const AVProbeData *pd)
 {
     if (pd->buf[0] == 'J' && pd->buf[1] == 'V' && strlen(MAGIC) + 4 <= pd->buf_size &&
         !memcmp(pd->buf + 4, MAGIC, strlen(MAGIC)))
diff --git a/libavformat/libgme.c b/libavformat/libgme.c
index 228273d..e6c56c4 100644
--- a/libavformat/libgme.c
+++ b/libavformat/libgme.c
@@ -169,7 +169,7 @@  static int read_seek_gme(AVFormatContext *s, int stream_idx, int64_t ts, int fla
     return 0;
 }
 
-static int probe_gme(AVProbeData *p)
+static int probe_gme(const AVProbeData *p)
 {
     // Reads 4 bytes - returns "" if unknown format.
     if (gme_identify_header(p->buf)[0]) {
diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index f18c610..314bdae 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -350,7 +350,7 @@  static int modplug_read_seek(AVFormatContext *s, int stream_idx, int64_t ts, int
 
 static const char modplug_extensions[] = "669,abc,amf,ams,dbm,dmf,dsm,far,it,mdl,med,mid,mod,mt2,mtm,okt,psm,ptm,s3m,stm,ult,umx,xm,itgz,itr,itz,mdgz,mdr,mdz,s3gz,s3r,s3z,xmgz,xmr,xmz";
 
-static int modplug_probe(AVProbeData *p)
+static int modplug_probe(const AVProbeData *p)
 {
     if (av_match_ext(p->filename, modplug_extensions)) {
         if (p->buf_size < 16384)
diff --git a/libavformat/libopenmpt.c b/libavformat/libopenmpt.c
index a334270..52511ab 100644
--- a/libavformat/libopenmpt.c
+++ b/libavformat/libopenmpt.c
@@ -232,7 +232,7 @@  static int probe_openmpt_extension(AVProbeData *p)
     return 0;
 }
 
-static int read_probe_openmpt(AVProbeData *p)
+static int read_probe_openmpt(const AVProbeData *p)
 {
 #if OPENMPT_API_VERSION_AT_LEAST(0,3,0)
     int probe_result;
diff --git a/libavformat/lmlm4.c b/libavformat/lmlm4.c
index d0cf8fe..79d703a 100644
--- a/libavformat/lmlm4.c
+++ b/libavformat/lmlm4.c
@@ -35,7 +35,7 @@ 
 
 #define LMLM4_MAX_PACKET_SIZE   1024 * 1024
 
-static int lmlm4_probe(AVProbeData *pd)
+static int lmlm4_probe(const AVProbeData *pd)
 {
     const unsigned char *buf = pd->buf;
     unsigned int frame_type, packet_size;
diff --git a/libavformat/loasdec.c b/libavformat/loasdec.c
index 7044055..c7e124e 100644
--- a/libavformat/loasdec.c
+++ b/libavformat/loasdec.c
@@ -27,7 +27,7 @@ 
 
 #define LOAS_SYNC_WORD 0x2b7
 
-static int loas_probe(AVProbeData *p)
+static int loas_probe(const AVProbeData *p)
 {
     int max_frames = 0, first_frames = 0;
     int fsize, frames;
diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c
index f4e9a4e..a9a1176 100644
--- a/libavformat/lrcdec.c
+++ b/libavformat/lrcdec.c
@@ -116,7 +116,7 @@  static int64_t read_line(AVBPrint *buf, AVIOContext *pb)
     return pos;
 }
 
-static int lrc_probe(AVProbeData *p)
+static int lrc_probe(const AVProbeData *p)
 {
     int64_t offset = 0;
     int64_t mm;
diff --git a/libavformat/lvfdec.c b/libavformat/lvfdec.c
index b8af256..8b8d6f0 100644
--- a/libavformat/lvfdec.c
+++ b/libavformat/lvfdec.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "riff.h"
 
-static int lvf_probe(AVProbeData *p)
+static int lvf_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('L', 'V', 'F', 'F'))
         return 0;
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
index 9b3eb6a..434518f 100644
--- a/libavformat/lxfdec.c
+++ b/libavformat/lxfdec.c
@@ -52,7 +52,7 @@  typedef struct LXFDemuxContext {
     uint32_t video_format, packet_type, extended_size;
 } LXFDemuxContext;
 
-static int lxf_probe(AVProbeData *p)
+static int lxf_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, LXF_IDENT, LXF_IDENT_LENGTH))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/m4vdec.c b/libavformat/m4vdec.c
index 220daeb..befe4d7 100644
--- a/libavformat/m4vdec.c
+++ b/libavformat/m4vdec.c
@@ -30,7 +30,7 @@ 
 #define SLICE_STARTCODE      0x1B7
 #define EXT_STARTCODE        0x1B8
 
-static int mpeg4video_probe(AVProbeData *probe_packet)
+static int mpeg4video_probe(const AVProbeData *probe_packet)
 {
     uint32_t temp_buffer = -1;
     int VO = 0, VOL = 0, VOP = 0, VISO = 0, res = 0;
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 0e3a689..81e9bb9 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1295,7 +1295,7 @@  static void ebml_free(EbmlSyntax *syntax, void *data)
 /*
  * Autodetecting...
  */
-static int matroska_probe(AVProbeData *p)
+static int matroska_probe(const AVProbeData *p)
 {
     uint64_t total = 0;
     int len_mask = 0x80, size = 1, n = 1, i;
diff --git a/libavformat/mgsts.c b/libavformat/mgsts.c
index 0720de8..415e052 100644
--- a/libavformat/mgsts.c
+++ b/libavformat/mgsts.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "riff.h"
 
-static int read_probe(AVProbeData *p)
+static int read_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf     ) != 0x000E ||
         AV_RB32(p->buf +  4) != 0x0050 ||
diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c
index c2f1ac4..ef6bcfb 100644
--- a/libavformat/microdvddec.c
+++ b/libavformat/microdvddec.c
@@ -36,7 +36,7 @@  typedef struct {
 } MicroDVDContext;
 
 
-static int microdvd_probe(AVProbeData *p)
+static int microdvd_probe(const AVProbeData *p)
 {
     unsigned char c;
     const uint8_t *ptr = p->buf;
diff --git a/libavformat/mj2kdec.c b/libavformat/mj2kdec.c
index 1fb9409..703ff91 100644
--- a/libavformat/mj2kdec.c
+++ b/libavformat/mj2kdec.c
@@ -24,7 +24,7 @@ 
 #include "rawdec.h"
 
 #if CONFIG_MJPEG_2000_DEMUXER
-static int mjpeg2000_probe(AVProbeData *p)
+static int mjpeg2000_probe(const AVProbeData *p)
 {
     const uint8_t *b = p->buf;
     int i, marker, marker_size;
diff --git a/libavformat/mlpdec.c b/libavformat/mlpdec.c
index d82df21..e210d7d 100644
--- a/libavformat/mlpdec.c
+++ b/libavformat/mlpdec.c
@@ -25,7 +25,7 @@ 
 #include "rawdec.h"
 #include "libavutil/intreadwrite.h"
 
-static int av_always_inline mlp_thd_probe(AVProbeData *p, uint32_t sync)
+static int av_always_inline mlp_thd_probe(const AVProbeData *p, uint32_t sync)
 {
     const uint8_t *buf, *last_buf = p->buf, *end = p->buf + p->buf_size;
     int frames = 0, valid = 0, size = 0;
@@ -51,7 +51,7 @@  static int av_always_inline mlp_thd_probe(AVProbeData *p, uint32_t sync)
 }
 
 #if CONFIG_MLP_DEMUXER
-static int mlp_probe(AVProbeData *p)
+static int mlp_probe(const AVProbeData *p)
 {
     return mlp_thd_probe(p, 0xf8726fbb);
 }
@@ -69,7 +69,7 @@  AVInputFormat ff_mlp_demuxer = {
 #endif
 
 #if CONFIG_TRUEHD_DEMUXER
-static int thd_probe(AVProbeData *p)
+static int thd_probe(const AVProbeData *p)
 {
     return mlp_thd_probe(p, 0xf8726fba);
 }
diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index ded8196..68ca2c5 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -52,7 +52,7 @@  typedef struct {
     uint64_t pts;
 } MlvContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) == MKTAG('M','L','V','I') &&
         AV_RL32(p->buf + 4) >= 52 &&
diff --git a/libavformat/mm.c b/libavformat/mm.c
index 8a1382e..83b3c20 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -58,7 +58,7 @@  typedef struct MmDemuxContext {
   unsigned int audio_pts, video_pts;
 } MmDemuxContext;
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     int len, type, fps, w, h;
     if (p->buf_size < MM_HEADER_LEN_AV + MM_PREAMBLE_SIZE)
diff --git a/libavformat/mmf.c b/libavformat/mmf.c
index 1393627..9171130 100644
--- a/libavformat/mmf.c
+++ b/libavformat/mmf.c
@@ -180,7 +180,7 @@  static int mmf_write_trailer(AVFormatContext *s)
 }
 #endif /* CONFIG_MMF_MUXER */
 
-static int mmf_probe(AVProbeData *p)
+static int mmf_probe(const AVProbeData *p)
 {
     /* check file header */
     if (p->buf[0] == 'M' && p->buf[1] == 'M' &&
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a7d444b..9e5670c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -6901,7 +6901,7 @@  static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     return 0;
 }
 
-static int mov_probe(AVProbeData *p)
+static int mov_probe(const AVProbeData *p)
 {
     int64_t offset;
     uint32_t tag;
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index ef88493..258f191 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -66,7 +66,7 @@  static int check(AVIOContext *pb, int64_t pos, uint32_t *header);
 
 /* mp3 read */
 
-static int mp3_read_probe(AVProbeData *p)
+static int mp3_read_probe(const AVProbeData *p)
 {
     int max_frames, first_frames = 0;
     int whole_used = 0;
diff --git a/libavformat/mpc.c b/libavformat/mpc.c
index af33374..487ff90 100644
--- a/libavformat/mpc.c
+++ b/libavformat/mpc.c
@@ -45,7 +45,7 @@  typedef struct MPCContext {
     int frames_noted;
 } MPCContext;
 
-static int mpc_probe(AVProbeData *p)
+static int mpc_probe(const AVProbeData *p)
 {
     const uint8_t *d = p->buf;
     if (d[0] == 'M' && d[1] == 'P' && d[2] == '+' && (d[3] == 0x17 || d[3] == 0x7))
diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index 79e5f6a..0eb879f 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -73,7 +73,7 @@  static inline int64_t bs_get_v(const uint8_t **bs)
     return v - br;
 }
 
-static int mpc8_probe(AVProbeData *p)
+static int mpc8_probe(const AVProbeData *p)
 {
     const uint8_t *bs = p->buf + 4;
     const uint8_t *bs_end = bs + p->buf_size;
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 9efe1bf..3205f20 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -64,7 +64,7 @@  static int check_pack_header(const uint8_t *buf)
     return (buf[1] & 0xC0) == 0x40 || (buf[1] & 0xF0) == 0x20;
 }
 
-static int mpegps_probe(AVProbeData *p)
+static int mpegps_probe(const AVProbeData *p)
 {
     uint32_t code = -1;
     int i;
@@ -703,7 +703,7 @@  AVInputFormat ff_mpegps_demuxer = {
 #define REF_STRING "# VobSub index file,"
 #define MAX_LINE_SIZE 2048
 
-static int vobsub_probe(AVProbeData *p)
+static int vobsub_probe(const AVProbeData *p)
 {
     if (!strncmp(p->buf, REF_STRING, sizeof(REF_STRING) - 1))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 8f68639..8a84e5c 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2868,7 +2868,7 @@  static int handle_packets(MpegTSContext *ts, int64_t nb_packets)
     return ret;
 }
 
-static int mpegts_probe(AVProbeData *p)
+static int mpegts_probe(const AVProbeData *p)
 {
     const int size = p->buf_size;
     int maxscore = 0;
diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c
index aca9621..2d6f81a 100644
--- a/libavformat/mpegvideodec.c
+++ b/libavformat/mpegvideodec.c
@@ -34,7 +34,7 @@ 
 #define VIDEO_ID                0x000001e0
 #define AUDIO_ID                0x000001c0
 
-static int mpegvideo_probe(AVProbeData *p)
+static int mpegvideo_probe(const AVProbeData *p)
 {
     uint32_t code= -1;
     int pic=0, seq=0, slice=0, pspack=0, vpes=0, apes=0, res=0, sicle=0;
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 64d880a..e653b5c 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -111,7 +111,7 @@  static int mpjpeg_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int mpjpeg_read_probe(AVProbeData *p)
+static int mpjpeg_read_probe(const AVProbeData *p)
 {
     AVIOContext *pb;
     int ret = 0;
diff --git a/libavformat/mpl2dec.c b/libavformat/mpl2dec.c
index dfcdf5a..4ae1839 100644
--- a/libavformat/mpl2dec.c
+++ b/libavformat/mpl2dec.c
@@ -33,7 +33,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } MPL2Context;
 
-static int mpl2_probe(AVProbeData *p)
+static int mpl2_probe(const AVProbeData *p)
 {
     int i;
     char c;
diff --git a/libavformat/mpsubdec.c b/libavformat/mpsubdec.c
index 1236efa..4ff49ba 100644
--- a/libavformat/mpsubdec.c
+++ b/libavformat/mpsubdec.c
@@ -31,7 +31,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } MPSubContext;
 
-static int mpsub_probe(AVProbeData *p)
+static int mpsub_probe(const AVProbeData *p)
 {
     const char *ptr     = p->buf;
     const char *ptr_end = p->buf + p->buf_size;
diff --git a/libavformat/msf.c b/libavformat/msf.c
index 6bd18f2..155f488 100644
--- a/libavformat/msf.c
+++ b/libavformat/msf.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int msf_probe(AVProbeData *p)
+static int msf_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "MSF", 3))
         return 0;
diff --git a/libavformat/msnwc_tcp.c b/libavformat/msnwc_tcp.c
index 3c73ac7..650f0d2 100644
--- a/libavformat/msnwc_tcp.c
+++ b/libavformat/msnwc_tcp.c
@@ -36,7 +36,7 @@ 
  *  uint32_t    ts;     // time
  */
 
-static int msnwc_tcp_probe(AVProbeData *p)
+static int msnwc_tcp_probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/mtaf.c b/libavformat/mtaf.c
index b25c2aa..8764a43 100644
--- a/libavformat/mtaf.c
+++ b/libavformat/mtaf.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int mtaf_probe(AVProbeData *p)
+static int mtaf_probe(const AVProbeData *p)
 {
     if (p->buf_size < 0x44)
         return 0;
diff --git a/libavformat/mtv.c b/libavformat/mtv.c
index dcf4aa4..728f4a4 100644
--- a/libavformat/mtv.c
+++ b/libavformat/mtv.c
@@ -51,7 +51,7 @@  typedef struct MTVDemuxContext {
 
 } MTVDemuxContext;
 
-static int mtv_probe(AVProbeData *p)
+static int mtv_probe(const AVProbeData *p)
 {
     /* we need at least 57 bytes from the header
      * to try parsing all required fields
diff --git a/libavformat/musx.c b/libavformat/musx.c
index aff6c31..8537eb7 100644
--- a/libavformat/musx.c
+++ b/libavformat/musx.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int musx_probe(AVProbeData *p)
+static int musx_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "MUSX", 4))
         return 0;
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index fa59617..4f75dca 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -46,7 +46,7 @@  typedef struct MvContext {
 
 #define AUDIO_FORMAT_SIGNED 401
 
-static int mv_probe(AVProbeData *p)
+static int mv_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) == MKBETAG('M', 'O', 'V', 'I') &&
         AV_RB16(p->buf + 4) < 3)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 3c3e476..1ba8ecd 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -3574,7 +3574,7 @@  static int mxf_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int mxf_probe(AVProbeData *p) {
+static int mxf_probe(const AVProbeData *p) {
     const uint8_t *bufp = p->buf;
     const uint8_t *end = p->buf + p->buf_size;
 
diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c
index 8cadcc7..bc3d3e8 100644
--- a/libavformat/ncdec.c
+++ b/libavformat/ncdec.c
@@ -26,7 +26,7 @@ 
 
 #define NC_VIDEO_FLAG 0x1A5
 
-static int nc_probe(AVProbeData *probe_packet)
+static int nc_probe(const AVProbeData *probe_packet)
 {
     int size;
 
diff --git a/libavformat/nistspheredec.c b/libavformat/nistspheredec.c
index 55f22eb..3ef3843 100644
--- a/libavformat/nistspheredec.c
+++ b/libavformat/nistspheredec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int nist_probe(AVProbeData *p)
+static int nist_probe(const AVProbeData *p)
 {
     if (AV_RL64(p->buf) == AV_RL64("NIST_1A\x0a"))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/nspdec.c b/libavformat/nspdec.c
index 34c747b..68f8f99 100644
--- a/libavformat/nspdec.c
+++ b/libavformat/nspdec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int nsp_probe(AVProbeData *p)
+static int nsp_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) == AV_RB32("FORM") &&
         AV_RB32(p->buf + 4) == AV_RB32("DS16"))
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index 92f7d17..7aa1b60 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -697,7 +697,7 @@  static int nsv_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int nsv_probe(AVProbeData *p)
+static int nsv_probe(const AVProbeData *p)
 {
     int i, score = 0;
 
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 056ef59..979cb9a 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -149,7 +149,7 @@  static int64_t find_startcode(AVIOContext *bc, uint64_t code, int64_t pos)
     }
 }
 
-static int nut_probe(AVProbeData *p)
+static int nut_probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 9bdea4a..a1edbf8 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -47,7 +47,7 @@  typedef enum {
     NUV_MYTHEXT   = 'X'
 } nuv_frametype;
 
-static int nuv_probe(AVProbeData *p)
+static int nuv_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, "NuppelVideo", 12))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 27d16a3..e815f42 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -941,7 +941,7 @@  static int ogg_read_seek(AVFormatContext *s, int stream_index,
     return ret;
 }
 
-static int ogg_probe(AVProbeData *p)
+static int ogg_probe(const AVProbeData *p)
 {
     if (!memcmp("OggS", p->buf, 5) && p->buf[5] <= 0x7)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 423d52b..60cbf3a 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -539,7 +539,7 @@  static int oma_read_packet(AVFormatContext *s, AVPacket *pkt)
     return oc->read_packet(s, pkt);
 }
 
-static int oma_read_probe(AVProbeData *p)
+static int oma_read_probe(const AVProbeData *p)
 {
     const uint8_t *buf = p->buf;
     unsigned tag_len = 0;
diff --git a/libavformat/paf.c b/libavformat/paf.c
index fa30cdd..b3c8e78 100644
--- a/libavformat/paf.c
+++ b/libavformat/paf.c
@@ -53,7 +53,7 @@  typedef struct PAFDemuxContext {
     int got_audio;
 } PAFDemuxContext;
 
-static int read_probe(AVProbeData *p)
+static int read_probe(const AVProbeData *p)
 {
     if ((p->buf_size >= strlen(MAGIC)) &&
         !memcmp(p->buf, MAGIC, strlen(MAGIC)))
diff --git a/libavformat/pjsdec.c b/libavformat/pjsdec.c
index bb587b5..50b1a48 100644
--- a/libavformat/pjsdec.c
+++ b/libavformat/pjsdec.c
@@ -33,7 +33,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } PJSContext;
 
-static int pjs_probe(AVProbeData *p)
+static int pjs_probe(const AVProbeData *p)
 {
     char c;
     int64_t start, end;
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c
index 0e80a09..0c2b6f5 100644
--- a/libavformat/pmpdec.c
+++ b/libavformat/pmpdec.c
@@ -32,7 +32,7 @@  typedef struct {
     int packet_sizes_alloc;
 } PMPContext;
 
-static int pmp_probe(AVProbeData *p) {
+static int pmp_probe(const AVProbeData *p) {
     if (AV_RN32(p->buf) == AV_RN32("pmpm") &&
         AV_RL32(p->buf + 4) == 1)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index f7b9495..ddc17e3 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -68,7 +68,7 @@  typedef struct StrDemuxContext {
 
 static const uint8_t sync_header[12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00};
 
-static int str_probe(AVProbeData *p)
+static int str_probe(const AVProbeData *p)
 {
     const uint8_t *sector= p->buf;
     const uint8_t *end= sector + p->buf_size;
diff --git a/libavformat/pva.c b/libavformat/pva.c
index 04ae8e2..58ec787 100644
--- a/libavformat/pva.c
+++ b/libavformat/pva.c
@@ -40,7 +40,7 @@  static int pva_check(const uint8_t *p) {
     return length + 8;
 }
 
-static int pva_probe(AVProbeData * pd) {
+static int pva_probe(const AVProbeData * pd) {
     const unsigned char *buf = pd->buf;
     int len = pva_check(buf);
 
diff --git a/libavformat/pvfdec.c b/libavformat/pvfdec.c
index c6652b9..4c91994 100644
--- a/libavformat/pvfdec.c
+++ b/libavformat/pvfdec.c
@@ -24,7 +24,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int pvf_probe(AVProbeData *p)
+static int pvf_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, "PVF1\n", 5))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/qcp.c b/libavformat/qcp.c
index b842e26..168030d 100644
--- a/libavformat/qcp.c
+++ b/libavformat/qcp.c
@@ -79,7 +79,7 @@  static int is_qcelp_13k_guid(const uint8_t *guid) {
         && !memcmp(guid+1, guid_qcelp_13k_part, sizeof(guid_qcelp_13k_part));
 }
 
-static int qcp_probe(AVProbeData *pd)
+static int qcp_probe(const AVProbeData *pd)
 {
     if (AV_RL32(pd->buf  ) == AV_RL32("RIFF") &&
         AV_RL64(pd->buf+8) == AV_RL64("QLCMfmt "))
diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index 1f53d84..224bcf7 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -368,7 +368,7 @@  static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
     return err;
 }
 
-static int r3d_probe(AVProbeData *p)
+static int r3d_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf + 4) == MKTAG('R','E','D','1'))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 6249352..c602e53 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -134,7 +134,7 @@  AVInputFormat ff_data_demuxer = {
 #endif
 
 #if CONFIG_MJPEG_DEMUXER
-static int mjpeg_probe(AVProbeData *p)
+static int mjpeg_probe(const AVProbeData *p)
 {
     int i;
     int state = -1;
diff --git a/libavformat/realtextdec.c b/libavformat/realtextdec.c
index 618d4f7..e12871e 100644
--- a/libavformat/realtextdec.c
+++ b/libavformat/realtextdec.c
@@ -35,7 +35,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } RealTextContext;
 
-static int realtext_probe(AVProbeData *p)
+static int realtext_probe(const AVProbeData *p)
 {
     char buf[7];
     FFTextReader tr;
diff --git a/libavformat/redspark.c b/libavformat/redspark.c
index c247046..f1f2b31 100644
--- a/libavformat/redspark.c
+++ b/libavformat/redspark.c
@@ -32,7 +32,7 @@  typedef struct RedSparkContext {
     int         samples_count;
 } RedSparkContext;
 
-static int redspark_probe(AVProbeData *p)
+static int redspark_probe(const AVProbeData *p)
 {
     uint32_t key, data;
     uint8_t header[8];
diff --git a/libavformat/rl2.c b/libavformat/rl2.c
index eb1682d..d847d9a 100644
--- a/libavformat/rl2.c
+++ b/libavformat/rl2.c
@@ -55,7 +55,7 @@  typedef struct Rl2DemuxContext {
  * @param p probe buffer
  * @return 0 when the probe buffer does not contain rl2 data, > 0 otherwise
  */
-static int rl2_probe(AVProbeData *p)
+static int rl2_probe(const AVProbeData *p)
 {
 
     if(AV_RB32(&p->buf[0]) != FORM_TAG)
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index f26c5b4..c9abd38 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -1067,7 +1067,7 @@  static int rm_read_close(AVFormatContext *s)
     return 0;
 }
 
-static int rm_probe(AVProbeData *p)
+static int rm_probe(const AVProbeData *p)
 {
     /* check file header */
     if ((p->buf[0] == '.' && p->buf[1] == 'R' &&
@@ -1158,7 +1158,7 @@  AVInputFormat ff_rdt_demuxer = {
     .flags          = AVFMT_NOFILE,
 };
 
-static int ivr_probe(AVProbeData *p)
+static int ivr_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, ".R1M\x0\x1\x1", 7) &&
         memcmp(p->buf, ".REC", 4))
diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index 6b45b35..fa63576 100644
--- a/libavformat/rpl.c
+++ b/libavformat/rpl.c
@@ -33,7 +33,7 @@ 
 /** 256 is arbitrary, but should be big enough for any reasonable file. */
 #define RPL_LINE_LENGTH 256
 
-static int rpl_probe(AVProbeData *p)
+static int rpl_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, RPL_SIGNATURE, RPL_SIGNATURE_SIZE))
         return 0;
diff --git a/libavformat/rsd.c b/libavformat/rsd.c
index 1c99f8c..396a431 100644
--- a/libavformat/rsd.c
+++ b/libavformat/rsd.c
@@ -41,7 +41,7 @@  static const uint32_t rsd_unsupported_tags[] = {
     MKTAG('O','G','G',' '),
 };
 
-static int rsd_probe(AVProbeData *p)
+static int rsd_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "RSD", 3) || p->buf[3] - '0' < 2 || p->buf[3] - '0' > 6)
         return 0;
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 975637c..ae88112 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2281,7 +2281,7 @@  end:
 #endif /* CONFIG_RTPDEC */
 
 #if CONFIG_SDP_DEMUXER
-static int sdp_probe(AVProbeData *p1)
+static int sdp_probe(const AVProbeData *p1)
 {
     const char *p = p1->buf, *p_end = p1->buf + p1->buf_size;
 
@@ -2420,7 +2420,7 @@  AVInputFormat ff_sdp_demuxer = {
 #endif /* CONFIG_SDP_DEMUXER */
 
 #if CONFIG_RTP_DEMUXER
-static int rtp_probe(AVProbeData *p)
+static int rtp_probe(const AVProbeData *p)
 {
     if (av_strstart(p->filename, "rtp:", NULL))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index 32dff23..bd2e8f4 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -699,7 +699,7 @@  static int rtsp_listen(AVFormatContext *s)
     }
 }
 
-static int rtsp_probe(AVProbeData *p)
+static int rtsp_probe(const AVProbeData *p)
 {
     if (
 #if CONFIG_TLS_PROTOCOL
diff --git a/libavformat/s337m.c b/libavformat/s337m.c
index 2e85d48..48ab66a 100644
--- a/libavformat/s337m.c
+++ b/libavformat/s337m.c
@@ -82,7 +82,7 @@  static int s337m_get_offset_and_codec(AVFormatContext *s,
     return 0;
 }
 
-static int s337m_probe(AVProbeData *p)
+static int s337m_probe(const AVProbeData *p)
 {
     uint64_t state = 0;
     int markers[3] = { 0 };
diff --git a/libavformat/samidec.c b/libavformat/samidec.c
index 7ea1bdf..fd98393 100644
--- a/libavformat/samidec.c
+++ b/libavformat/samidec.c
@@ -36,7 +36,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } SAMIContext;
 
-static int sami_probe(AVProbeData *p)
+static int sami_probe(const AVProbeData *p)
 {
     char buf[6];
     FFTextReader tr;
diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c
index 4005276..eddedde 100644
--- a/libavformat/sapdec.c
+++ b/libavformat/sapdec.c
@@ -42,7 +42,7 @@  struct SAPState {
     int eof;
 };
 
-static int sap_probe(AVProbeData *p)
+static int sap_probe(const AVProbeData *p)
 {
     if (av_strstart(p->filename, "sap:", NULL))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index cbedd12..67ae396 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -1367,7 +1367,7 @@  static int encode_intervals(struct sbg_script *s, AVCodecParameters *par,
     return 0;
 }
 
-static av_cold int sbg_read_probe(AVProbeData *p)
+static av_cold int sbg_read_probe(const AVProbeData *p)
 {
     int r, score;
     struct sbg_script script = { 0 };
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 89d21b9..006300f 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -29,7 +29,7 @@  typedef struct SCCContext {
     FFDemuxSubtitlesQueue q;
 } SCCContext;
 
-static int scc_probe(AVProbeData *p)
+static int scc_probe(const AVProbeData *p)
 {
     char buf[18];
     FFTextReader tr;
diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c
index c995333..50abdf9 100644
--- a/libavformat/sdr2.c
+++ b/libavformat/sdr2.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int sdr2_probe(AVProbeData *p)
+static int sdr2_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKTAG('S', 'R', 'A', 1))
         return 0;
diff --git a/libavformat/sdsdec.c b/libavformat/sdsdec.c
index 081bb4c..9c361cd 100644
--- a/libavformat/sdsdec.c
+++ b/libavformat/sdsdec.c
@@ -30,7 +30,7 @@  typedef struct SDSContext {
     void (*read_block)(const uint8_t *src, uint32_t *dst);
 } SDSContext;
 
-static int sds_probe(AVProbeData *p)
+static int sds_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) == 0xF07E0001 && p->buf[20] == 0xF7 &&
         p->buf[6] >= 8 && p->buf[6] <= 28)
diff --git a/libavformat/sdxdec.c b/libavformat/sdxdec.c
index e8e7a4f..1965104 100644
--- a/libavformat/sdxdec.c
+++ b/libavformat/sdxdec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int sdx_probe(AVProbeData *p)
+static int sdx_probe(const AVProbeData *p)
 {
     if (AV_RB32(p->buf) == AV_RB32("SDX:"))
         return AVPROBE_SCORE_EXTENSION;
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index b0c6c41..777606b 100644
--- a/libavformat/segafilm.c
+++ b/libavformat/segafilm.c
@@ -64,7 +64,7 @@  typedef struct FilmDemuxContext {
     unsigned int version;
 } FilmDemuxContext;
 
-static int film_probe(AVProbeData *p)
+static int film_probe(const AVProbeData *p)
 {
     if (AV_RB32(&p->buf[0]) != FILM_TAG)
         return 0;
diff --git a/libavformat/serdec.c b/libavformat/serdec.c
index 25e6f63..5745ae1 100644
--- a/libavformat/serdec.c
+++ b/libavformat/serdec.c
@@ -35,7 +35,7 @@  typedef struct SERDemuxerContext {
     int64_t end;
 } SERDemuxerContext;
 
-static int ser_probe(AVProbeData *pd)
+static int ser_probe(const AVProbeData *pd)
 {
     if (memcmp(pd->buf, SER_MAGIC, 14) == 0)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/shortendec.c b/libavformat/shortendec.c
index 42fcdf7..b02984a 100644
--- a/libavformat/shortendec.c
+++ b/libavformat/shortendec.c
@@ -25,7 +25,7 @@ 
 #include "rawdec.h"
 #include "libavcodec/golomb.h"
 
-static int shn_probe(AVProbeData *p)
+static int shn_probe(const AVProbeData *p)
 {
     GetBitContext gb;
     int version, internal_ftype, channels, blocksize;
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 6960c28..d586fc6 100644
--- a/libavformat/sierravmd.c
+++ b/libavformat/sierravmd.c
@@ -62,7 +62,7 @@  typedef struct VmdDemuxContext {
     unsigned char vmd_header[VMD_HEADER_SIZE];
 } VmdDemuxContext;
 
-static int vmd_probe(AVProbeData *p)
+static int vmd_probe(const AVProbeData *p)
 {
     int w, h, sample_rate;
     if (p->buf_size < 806)
diff --git a/libavformat/siff.c b/libavformat/siff.c
index ddd1715..24d5ebb 100644
--- a/libavformat/siff.c
+++ b/libavformat/siff.c
@@ -62,7 +62,7 @@  typedef struct SIFFContext {
     uint8_t gmc[4];
 } SIFFContext;
 
-static int siff_probe(AVProbeData *p)
+static int siff_probe(const AVProbeData *p)
 {
     uint32_t tag = AV_RL32(p->buf + 8);
     /* check file header */
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 8a21cc0..b5c858a 100644
--- a/libavformat/smacker.c
+++ b/libavformat/smacker.c
@@ -92,7 +92,7 @@  static const uint8_t smk_pal[64] = {
 };
 
 
-static int smacker_probe(AVProbeData *p)
+static int smacker_probe(const AVProbeData *p)
 {
     if (   AV_RL32(p->buf) != MKTAG('S', 'M', 'K', '2')
         && AV_RL32(p->buf) != MKTAG('S', 'M', 'K', '4'))
diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c
index c184c0d..5bc0492 100644
--- a/libavformat/smjpegdec.c
+++ b/libavformat/smjpegdec.c
@@ -36,7 +36,7 @@  typedef struct SMJPEGContext {
     int video_stream_index;
 } SMJPEGContext;
 
-static int smjpeg_probe(AVProbeData *p)
+static int smjpeg_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, SMJPEG_MAGIC, 8))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/smush.c b/libavformat/smush.c
index fe544d8..20352ad 100644
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -31,7 +31,7 @@  typedef struct SMUSHContext {
     int video_stream_index;
 } SMUSHContext;
 
-static int smush_read_probe(AVProbeData *p)
+static int smush_read_probe(const AVProbeData *p)
 {
     if (((AV_RL32(p->buf)     == MKTAG('S', 'A', 'N', 'M') &&
           AV_RL32(p->buf + 8) == MKTAG('S', 'H', 'D', 'R')) ||
diff --git a/libavformat/sol.c b/libavformat/sol.c
index 5796f8d2..19905e8 100644
--- a/libavformat/sol.c
+++ b/libavformat/sol.c
@@ -32,7 +32,7 @@ 
 /* if we don't know the size in advance */
 #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
 
-static int sol_probe(AVProbeData *p)
+static int sol_probe(const AVProbeData *p)
 {
     /* check file header */
     uint16_t magic = AV_RL32(p->buf);
diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c
index 12a94c8..d3f709f 100644
--- a/libavformat/soxdec.c
+++ b/libavformat/soxdec.c
@@ -37,7 +37,7 @@ 
 #include "pcm.h"
 #include "sox.h"
 
-static int sox_probe(AVProbeData *p)
+static int sox_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) == SOX_TAG || AV_RB32(p->buf) == SOX_TAG)
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/spdifdec.c b/libavformat/spdifdec.c
index 21bfce4..d74f58d 100644
--- a/libavformat/spdifdec.c
+++ b/libavformat/spdifdec.c
@@ -107,7 +107,7 @@  static int spdif_get_offset_and_codec(AVFormatContext *s,
    samples = 4096 */
 #define SPDIF_MAX_OFFSET 16384
 
-static int spdif_probe(AVProbeData *p)
+static int spdif_probe(const AVProbeData *p)
 {
     enum AVCodecID codec;
     return ff_spdif_probe (p->buf, p->buf_size, &codec);
diff --git a/libavformat/srtdec.c b/libavformat/srtdec.c
index 56bd0c4..40d324b 100644
--- a/libavformat/srtdec.c
+++ b/libavformat/srtdec.c
@@ -30,7 +30,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } SRTContext;
 
-static int srt_probe(AVProbeData *p)
+static int srt_probe(const AVProbeData *p)
 {
     int v;
     char buf[64], *pbuf;
diff --git a/libavformat/stldec.c b/libavformat/stldec.c
index 35de493..d6e0713 100644
--- a/libavformat/stldec.c
+++ b/libavformat/stldec.c
@@ -34,7 +34,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } STLContext;
 
-static int stl_probe(AVProbeData *p)
+static int stl_probe(const AVProbeData *p)
 {
     char c;
     const unsigned char *ptr = p->buf;
diff --git a/libavformat/subviewer1dec.c b/libavformat/subviewer1dec.c
index e579d1c..1360d9b 100644
--- a/libavformat/subviewer1dec.c
+++ b/libavformat/subviewer1dec.c
@@ -31,7 +31,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } SubViewer1Context;
 
-static int subviewer1_probe(AVProbeData *p)
+static int subviewer1_probe(const AVProbeData *p)
 {
     const unsigned char *ptr = p->buf;
 
diff --git a/libavformat/subviewerdec.c b/libavformat/subviewerdec.c
index 61eb80a..06b827b 100644
--- a/libavformat/subviewerdec.c
+++ b/libavformat/subviewerdec.c
@@ -37,7 +37,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } SubViewerContext;
 
-static int subviewer_probe(AVProbeData *p)
+static int subviewer_probe(const AVProbeData *p)
 {
     char c;
     const unsigned char *ptr = p->buf;
diff --git a/libavformat/supdec.c b/libavformat/supdec.c
index 0930dbc..d3fb251 100644
--- a/libavformat/supdec.c
+++ b/libavformat/supdec.c
@@ -68,7 +68,7 @@  static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
     return 0;
 }
 
-static int sup_probe(AVProbeData *p)
+static int sup_probe(const AVProbeData *p)
 {
     unsigned char *buf = p->buf;
     size_t buf_size = p->buf_size;
diff --git a/libavformat/svag.c b/libavformat/svag.c
index 828b853..83e033b 100644
--- a/libavformat/svag.c
+++ b/libavformat/svag.c
@@ -22,7 +22,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int svag_probe(AVProbeData *p)
+static int svag_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "Svag", 4))
         return 0;
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 212157f..85bd304 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -61,7 +61,7 @@  static int get_swf_tag(AVIOContext *pb, int *len_ptr)
 }
 
 
-static int swf_probe(AVProbeData *p)
+static int swf_probe(const AVProbeData *p)
 {
     GetBitContext gb;
     int len, xmin, xmax, ymin, ymax;
diff --git a/libavformat/takdec.c b/libavformat/takdec.c
index 6fda35c..ee96c27 100644
--- a/libavformat/takdec.c
+++ b/libavformat/takdec.c
@@ -35,7 +35,7 @@  typedef struct TAKDemuxContext {
     int64_t data_end;
 } TAKDemuxContext;
 
-static int tak_probe(AVProbeData *p)
+static int tak_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, "tBaK", 4))
         return AVPROBE_SCORE_EXTENSION;
diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index cd6ab0c..5572bfd 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -321,7 +321,7 @@  static int tedcaptions_read_close(AVFormatContext *avf)
     return 0;
 }
 
-static av_cold int tedcaptions_read_probe(AVProbeData *p)
+static av_cold int tedcaptions_read_probe(const AVProbeData *p)
 {
     static const char *const tags[] = {
         "\"captions\"", "\"duration\"", "\"content\"",
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 76b9b38..ee5c78b 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -45,7 +45,7 @@  typedef struct ThpDemuxContext {
 } ThpDemuxContext;
 
 
-static int thp_probe(AVProbeData *p)
+static int thp_probe(const AVProbeData *p)
 {
     double d;
     /* check file header */
diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c
index 6e00692..e861869 100644
--- a/libavformat/tiertexseq.c
+++ b/libavformat/tiertexseq.c
@@ -60,7 +60,7 @@  typedef struct SeqDemuxContext {
 } SeqDemuxContext;
 
 
-static int seq_probe(AVProbeData *p)
+static int seq_probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/tmv.c b/libavformat/tmv.c
index 2e35171..b74af54 100644
--- a/libavformat/tmv.c
+++ b/libavformat/tmv.c
@@ -51,7 +51,7 @@  typedef struct TMVContext {
 #define PROBE_MAX_FPS         120
 #define PROBE_MIN_AUDIO_SIZE  (PROBE_MIN_SAMPLE_RATE / PROBE_MAX_FPS)
 
-static int tmv_probe(AVProbeData *p)
+static int tmv_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf)   == TMV_TAG &&
         AV_RL16(p->buf+4) >= PROBE_MIN_SAMPLE_RATE &&
diff --git a/libavformat/tta.c b/libavformat/tta.c
index ae90a85..467c244 100644
--- a/libavformat/tta.c
+++ b/libavformat/tta.c
@@ -35,7 +35,7 @@  typedef struct TTAContext {
     int last_frame_size;
 } TTAContext;
 
-static int tta_probe(AVProbeData *p)
+static int tta_probe(const AVProbeData *p)
 {
     if (AV_RL32(&p->buf[0]) == MKTAG('T', 'T', 'A', '1') &&
         (AV_RL16(&p->buf[4]) == 1 || AV_RL16(&p->buf[4]) == 2) &&
diff --git a/libavformat/txd.c b/libavformat/txd.c
index 18c9683..072cd04 100644
--- a/libavformat/txd.c
+++ b/libavformat/txd.c
@@ -31,7 +31,7 @@ 
 #define TXD_MARKER          0x1803ffff
 #define TXD_MARKER2         0x1003ffff
 
-static int txd_probe(AVProbeData * pd) {
+static int txd_probe(const AVProbeData * pd) {
     if (AV_RL32(pd->buf  ) == TXD_FILE &&
        (AV_RL32(pd->buf+8) == TXD_MARKER || AV_RL32(pd->buf+8) == TXD_MARKER2))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/ty.c b/libavformat/ty.c
index 8230d3a..bbb2e28 100644
--- a/libavformat/ty.c
+++ b/libavformat/ty.c
@@ -106,7 +106,7 @@  typedef struct TYDemuxContext {
     uint8_t         chunk[CHUNK_SIZE];
 } TYDemuxContext;
 
-static int ty_probe(AVProbeData *p)
+static int ty_probe(const AVProbeData *p)
 {
     int i;
 
diff --git a/libavformat/vag.c b/libavformat/vag.c
index e8ebcaf..51045e6 100644
--- a/libavformat/vag.c
+++ b/libavformat/vag.c
@@ -23,7 +23,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int vag_probe(AVProbeData *p)
+static int vag_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "VAGp\0\0\0", 7))
         return 0;
diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c
index 69fde1a..46e08ee 100644
--- a/libavformat/vapoursynth.c
+++ b/libavformat/vapoursynth.c
@@ -469,7 +469,7 @@  static int read_seek_vs(AVFormatContext *s, int stream_idx, int64_t ts, int flag
     return 0;
 }
 
-static av_cold int probe_vs(AVProbeData *p)
+static av_cold int probe_vs(const AVProbeData *p)
 {
     // Explicitly do not support this. VS scripts are written in Python, and
     // can run arbitrary code on the user's system.
diff --git a/libavformat/vc1dec.c b/libavformat/vc1dec.c
index 33f8465..f4101ae 100644
--- a/libavformat/vc1dec.c
+++ b/libavformat/vc1dec.c
@@ -24,7 +24,7 @@ 
 #include "libavutil/intreadwrite.h"
 #include "libavcodec/vc1_common.h"
 
-static int vc1_probe(AVProbeData *p)
+static int vc1_probe(const AVProbeData *p)
 {
     int seq = 0, entry = 0, frame = 0, i;
 
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c
index d445709..3c67793 100644
--- a/libavformat/vc1test.c
+++ b/libavformat/vc1test.c
@@ -32,7 +32,7 @@ 
 
 #define VC1_EXTRADATA_SIZE 4
 
-static int vc1t_probe(AVProbeData *p)
+static int vc1t_probe(const AVProbeData *p)
 {
     uint32_t size;
 
diff --git a/libavformat/vividas.c b/libavformat/vividas.c
index 598b8bb..c99cbd1 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -70,7 +70,7 @@  typedef struct VividasDemuxContext {
     VIV_AudioSubpacket audio_subpackets[MAX_AUDIO_SUBPACKETS];
 } VividasDemuxContext;
 
-static int viv_probe(AVProbeData *p)
+static int viv_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "vividas03", 9))
         return 0;
diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 9b9189f..9a07c43 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -40,7 +40,7 @@  typedef struct VivoContext {
     uint8_t  text[1024 + 1];
 } VivoContext;
 
-static int vivo_probe(AVProbeData *p)
+static int vivo_probe(const AVProbeData *p)
 {
     const unsigned char *buf = p->buf;
     unsigned c, length = 0;
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index 10df28b..fd1ca20 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -23,7 +23,7 @@ 
 #include "voc.h"
 #include "internal.h"
 
-static int voc_probe(AVProbeData *p)
+static int voc_probe(const AVProbeData *p)
 {
     int version, check;
 
diff --git a/libavformat/vpk.c b/libavformat/vpk.c
index bb9eabb..1dfb8fc 100644
--- a/libavformat/vpk.c
+++ b/libavformat/vpk.c
@@ -29,7 +29,7 @@  typedef struct VPKDemuxContext {
     unsigned last_block_size;
 } VPKDemuxContext;
 
-static int vpk_probe(AVProbeData *p)
+static int vpk_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != MKBETAG('V','P','K',' '))
         return 0;
diff --git a/libavformat/vplayerdec.c b/libavformat/vplayerdec.c
index 49943d0..e3e7b4e 100644
--- a/libavformat/vplayerdec.c
+++ b/libavformat/vplayerdec.c
@@ -31,7 +31,7 @@  typedef struct {
     FFDemuxSubtitlesQueue q;
 } VPlayerContext;
 
-static int vplayer_probe(AVProbeData *p)
+static int vplayer_probe(const AVProbeData *p)
 {
     char c;
     const unsigned char *ptr = p->buf;
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index d00fa5e..a589923 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -32,7 +32,7 @@  typedef struct VqfContext {
     int remaining_bits;
 } VqfContext;
 
-static int vqf_probe(AVProbeData *probe_packet)
+static int vqf_probe(const AVProbeData *probe_packet)
 {
     if (AV_RL32(probe_packet->buf) != MKTAG('T','W','I','N'))
         return 0;
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 6a024de..1b131ee 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -129,7 +129,7 @@  static int64_t find_tag(WAVDemuxContext * wav, AVIOContext *pb, uint32_t tag1)
     return size;
 }
 
-static int wav_probe(AVProbeData *p)
+static int wav_probe(const AVProbeData *p)
 {
     /* check file header */
     if (p->buf_size <= 32)
@@ -774,7 +774,7 @@  AVInputFormat ff_wav_demuxer = {
 #endif /* CONFIG_WAV_DEMUXER */
 
 #if CONFIG_W64_DEMUXER
-static int w64_probe(AVProbeData *p)
+static int w64_probe(const AVProbeData *p)
 {
     if (p->buf_size <= 40)
         return 0;
diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c
index cb4d4d9..27f5eb1 100644
--- a/libavformat/wc3movie.c
+++ b/libavformat/wc3movie.c
@@ -73,7 +73,7 @@  typedef struct Wc3DemuxContext {
 
 } Wc3DemuxContext;
 
-static int wc3_probe(AVProbeData *p)
+static int wc3_probe(const AVProbeData *p)
 {
     if (p->buf_size < 12)
         return 0;
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 0aeb8a6..e435de3 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -37,7 +37,7 @@  typedef struct {
     int kind;
 } WebVTTContext;
 
-static int webvtt_probe(AVProbeData *p)
+static int webvtt_probe(const AVProbeData *p)
 {
     const uint8_t *ptr = p->buf;
 
diff --git a/libavformat/westwood_aud.c b/libavformat/westwood_aud.c
index 9c2d35c..9e3d807 100644
--- a/libavformat/westwood_aud.c
+++ b/libavformat/westwood_aud.c
@@ -42,7 +42,7 @@ 
 #define AUD_CHUNK_PREAMBLE_SIZE 8
 #define AUD_CHUNK_SIGNATURE 0x0000DEAF
 
-static int wsaud_probe(AVProbeData *p)
+static int wsaud_probe(const AVProbeData *p)
 {
     int field;
 
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
index efb9847..c21a3e3 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -62,7 +62,7 @@  typedef struct WsVqaDemuxContext {
     int video_stream_index;
 } WsVqaDemuxContext;
 
-static int wsvqa_probe(AVProbeData *p)
+static int wsvqa_probe(const AVProbeData *p)
 {
     /* need 12 bytes to qualify */
     if (p->buf_size < 12)
diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c
index 81a4dcc..dfa8014 100644
--- a/libavformat/wsddec.c
+++ b/libavformat/wsddec.c
@@ -25,7 +25,7 @@ 
 #include "internal.h"
 #include "rawdec.h"
 
-static int wsd_probe(AVProbeData *p)
+static int wsd_probe(const AVProbeData *p)
 {
     if (p->buf_size < 45 || memcmp(p->buf, "1bit", 4) ||
         !AV_RB32(p->buf + 36) || !p->buf[44] ||
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 301163b..890db2e 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -371,7 +371,7 @@  static const ff_asf_guid mediasubtype_dtvccdata =
 static const ff_asf_guid mediasubtype_mpeg2_sections =
     {0x79,0x85,0x9F,0x4A,0xF8,0x6B,0x92,0x43,0x8A,0x6D,0xD2,0xDD,0x09,0xFA,0x78,0x61};
 
-static int read_probe(AVProbeData *p)
+static int read_probe(const AVProbeData *p)
 {
     return ff_guidcmp(p->buf, ff_wtv_guid) ? 0 : AVPROBE_SCORE_MAX;
 }
diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c
index ddcb900..649791d 100644
--- a/libavformat/wvdec.c
+++ b/libavformat/wvdec.c
@@ -60,7 +60,7 @@  typedef struct WVContext {
     int64_t apetag_start;
 } WVContext;
 
-static int wv_probe(AVProbeData *p)
+static int wv_probe(const AVProbeData *p)
 {
     /* check file header */
     if (p->buf_size <= 32)
diff --git a/libavformat/wvedec.c b/libavformat/wvedec.c
index 89c0001..4d9d3e5 100644
--- a/libavformat/wvedec.c
+++ b/libavformat/wvedec.c
@@ -22,7 +22,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-static int wve_probe(AVProbeData *p)
+static int wve_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "ALawSoundFile**\0\017\020", 18) ||
         memcmp(p->buf + 22, "\0\0\0\1\0\0\0\0\0\0", 10))
diff --git a/libavformat/xa.c b/libavformat/xa.c
index 810e0c0..a07271b 100644
--- a/libavformat/xa.c
+++ b/libavformat/xa.c
@@ -40,7 +40,7 @@  typedef struct MaxisXADemuxContext {
     uint32_t sent_bytes;
 } MaxisXADemuxContext;
 
-static int xa_probe(AVProbeData *p)
+static int xa_probe(const AVProbeData *p)
 {
     int channels, srate, bits_per_sample;
     if (p->buf_size < 24)
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index b974e5a..29a32f2 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -115,7 +115,7 @@  typedef struct XMVDemuxContext {
     XMVAudioPacket *audio; ///< The audio packets contained in each packet.
 } XMVDemuxContext;
 
-static int xmv_probe(AVProbeData *p)
+static int xmv_probe(const AVProbeData *p)
 {
     uint32_t file_version;
 
diff --git a/libavformat/xvag.c b/libavformat/xvag.c
index 22e4f1e..e95d84a 100644
--- a/libavformat/xvag.c
+++ b/libavformat/xvag.c
@@ -24,7 +24,7 @@ 
 #include "avformat.h"
 #include "internal.h"
 
-static int xvag_probe(AVProbeData *p)
+static int xvag_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "XVAG", 4) ||
         memcmp(p->buf+32, "fmat", 4))
diff --git a/libavformat/xwma.c b/libavformat/xwma.c
index f357c3e..b084449 100644
--- a/libavformat/xwma.c
+++ b/libavformat/xwma.c
@@ -34,7 +34,7 @@  typedef struct XWMAContext {
     int64_t data_end;
 } XWMAContext;
 
-static int xwma_probe(AVProbeData *p)
+static int xwma_probe(const AVProbeData *p)
 {
     if (!memcmp(p->buf, "RIFF", 4) && !memcmp(p->buf + 8, "XWMA", 4))
         return AVPROBE_SCORE_MAX;
diff --git a/libavformat/yop.c b/libavformat/yop.c
index b4b5fb4..f9ead02 100644
--- a/libavformat/yop.c
+++ b/libavformat/yop.c
@@ -36,7 +36,7 @@  typedef struct yop_dec_context {
     int palette_size;
 } YopDecContext;
 
-static int yop_probe(AVProbeData *probe_packet)
+static int yop_probe(const AVProbeData *probe_packet)
 {
     if (AV_RB16(probe_packet->buf) == AV_RB16("YO")  &&
         probe_packet->buf[2]<10                      &&
diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index 855fadb..fc2f0ca 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -333,7 +333,7 @@  static int yuv4_read_seek(AVFormatContext *s, int stream_index,
     return 0;
 }
 
-static int yuv4_probe(AVProbeData *pd)
+static int yuv4_probe(const AVProbeData *pd)
 {
     /* check file header */
     if (strncmp(pd->buf, Y4M_MAGIC, sizeof(Y4M_MAGIC) - 1) == 0)
-- 
1.7.10.4