]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/soxenc.c
avformat: Constify all muxer/demuxers
[ffmpeg] / libavformat / soxenc.c
index 7b37bd48484919fb094878f1a84f4baf7019da60..e24501bacd77eda01e86062f3683d06a48764568 100644 (file)
@@ -80,8 +80,6 @@ static int sox_write_header(AVFormatContext *s)
 
     ffio_fill(pb, 0, comment_size - comment_len);
 
-    avio_flush(pb);
-
     return 0;
 }
 
@@ -101,14 +99,12 @@ static int sox_write_trailer(AVFormatContext *s)
         } else
             avio_wb64(pb, num_samples);
         avio_seek(pb, file_size, SEEK_SET);
-
-        avio_flush(pb);
     }
 
     return 0;
 }
 
-AVOutputFormat ff_sox_muxer = {
+const AVOutputFormat ff_sox_muxer = {
     .name              = "sox",
     .long_name         = NULL_IF_CONFIG_SMALL("SoX native"),
     .extensions        = "sox",