X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsoxenc.c;h=e24501bacd77eda01e86062f3683d06a48764568;hb=bc70684e74a185d7b80c8b80bdedda659cb581b8;hp=7b37bd48484919fb094878f1a84f4baf7019da60;hpb=ce47f1589e9f5a6cf8372a269bdd862ff0cc3f91;p=ffmpeg diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c index 7b37bd48484..e24501bacd7 100644 --- a/libavformat/soxenc.c +++ b/libavformat/soxenc.c @@ -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",