X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fau.c;h=4afee85a948e3a1787efd42457e05395a8724bd4;hb=f15007afa90a3eb3639848d9702c1cc3ac3e896b;hp=0b2b7eac15ac1ae9af7569e37281bf03e1c7cc3d;hpb=f05f210526a3dc2d9fa6b1c228e3907ebd1d43c6;p=ffmpeg diff --git a/libavformat/au.c b/libavformat/au.c index 0b2b7eac15a..4afee85a948 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -57,7 +57,7 @@ static const AVCodecTag codec_au_tags[] = { #if CONFIG_AU_DEMUXER -static int au_probe(AVProbeData *p) +static int au_probe(const AVProbeData *p) { if (p->buf[0] == '.' && p->buf[1] == 's' && p->buf[2] == 'n' && p->buf[3] == 'd') @@ -311,7 +311,6 @@ static int au_write_header(AVFormatContext *s) } else { avio_wb64(pb, 0); /* annotation field */ } - avio_flush(pb); return 0; } @@ -327,7 +326,6 @@ static int au_write_trailer(AVFormatContext *s) avio_seek(pb, 8, SEEK_SET); avio_wb32(pb, (uint32_t)(file_size - au->header_size)); avio_seek(pb, file_size, SEEK_SET); - avio_flush(pb); } return 0;