]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/brstm.c
avformat/mpc: deallocate frames array on errors
[ffmpeg] / libavformat / brstm.c
index 87690e3f73e421ebf870edc15ae9417bf92ff4c5..e8a1eaa022078597c4244445644697b4deb6408e 100644 (file)
@@ -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')) &&