]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mmf.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / libavformat / mmf.c
index 1393627d8abc87b014caf753d458d2c41612c10a..e4768db0646154f74015b3196616008007fb0f54 100644 (file)
@@ -123,8 +123,6 @@ static int mmf_write_header(AVFormatContext *s)
 
     avpriv_set_pts_info(s->streams[0], 64, 1, s->streams[0]->codecpar->sample_rate);
 
-    avio_flush(pb);
-
     return 0;
 }
 
@@ -173,14 +171,12 @@ static int mmf_write_trailer(AVFormatContext *s)
         avio_write(pb, "\x00\x00\x00\x00", 4);
 
         avio_seek(pb, pos, SEEK_SET);
-
-        avio_flush(pb);
     }
     return 0;
 }
 #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' &&