In wav muxer, always flush in write_trailer, fix pipe output
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 28 Jul 2010 08:17:02 +0000 (08:17 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 28 Jul 2010 08:17:02 +0000 (08:17 +0000)
Originally committed as revision 24568 to svn://svn.ffmpeg.org/ffmpeg/trunk

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);