In wav muxer, always flush in write_trailer, fix pipe output
[ffmpeg.git] / libavformat / wav.c
index da08558..4c72bec 100644 (file)
@@ -95,6 +95,8 @@ static int wav_write_trailer(AVFormatContext *s)
     WAVContext    *wav = s->priv_data;
     int64_t file_size;
 
+    put_flush_packet(pb);
+
     if (!url_is_streamed(s->pb)) {
         ff_end_tag(pb, wav->data);