Mercurial > libavformat.hg
comparison ffm.c @ 751:dcb459ca11eb libavformat
Flush the ffm packet to the wire (or file) whenever we flush the ffm packet.
This helps streaming no end.
author | philipjsg |
---|---|
date | Sat, 07 May 2005 00:58:28 +0000 |
parents | da5b3b9e898e |
children | cdb845a57ae4 |
comparison
equal
deleted
inserted
replaced
750:ba67f8c7f8f9 | 751:dcb459ca11eb |
---|---|
76 h = ffm->frame_offset; | 76 h = ffm->frame_offset; |
77 if (ffm->first_packet) | 77 if (ffm->first_packet) |
78 h |= 0x8000; | 78 h |= 0x8000; |
79 put_be16(pb, h); | 79 put_be16(pb, h); |
80 put_buffer(pb, ffm->packet, ffm->packet_end - ffm->packet); | 80 put_buffer(pb, ffm->packet, ffm->packet_end - ffm->packet); |
81 put_flush_packet(pb); | |
81 | 82 |
82 /* prepare next packet */ | 83 /* prepare next packet */ |
83 ffm->frame_offset = 0; /* no key frame */ | 84 ffm->frame_offset = 0; /* no key frame */ |
84 ffm->pts = 0; /* no pts */ | 85 ffm->pts = 0; /* no pts */ |
85 ffm->packet_ptr = ffm->packet; | 86 ffm->packet_ptr = ffm->packet; |