OSDN Git Service

Flush the ffm packet to the wire (or file) whenever we flush the ffm packet.
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Sat, 7 May 2005 00:58:28 +0000 (00:58 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Sat, 7 May 2005 00:58:28 +0000 (00:58 +0000)
This helps streaming no end.

Originally committed as revision 4195 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/ffm.c

index a5dd036..c705a8e 100644 (file)
@@ -78,6 +78,7 @@ static void flush_packet(AVFormatContext *s)
         h |= 0x8000;
     put_be16(pb, h);
     put_buffer(pb, ffm->packet, ffm->packet_end - ffm->packet);
+    put_flush_packet(pb);
 
     /* prepare next packet */
     ffm->frame_offset = 0; /* no key frame */