]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/soxenc.c
avutil/buffer: Switch AVBuffer API to size_t
[ffmpeg] / libavformat / soxenc.c
index 7b37bd48484919fb094878f1a84f4baf7019da60..ce276f88b5d917feaed594b8251a4ca7a682664a 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,8 +99,6 @@ 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;