Mercurial > libavformat.hg
changeset 1895:87148b96d649 libavformat
some url_is_streamed()==1 related fixes
author | michael |
---|---|
date | Sun, 11 Mar 2007 02:51:06 +0000 |
parents | 1cbd1d658165 |
children | 6d2157d1fc93 |
files | asf-enc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/asf-enc.c Sat Mar 10 19:30:59 2007 +0000 +++ b/asf-enc.c Sun Mar 11 02:51:06 2007 +0000 @@ -311,7 +311,7 @@ put_le64(pb, duration); /* end time stamp (in 100ns units) */ put_le64(pb, asf->duration); /* duration (in 100ns units) */ put_le64(pb, PREROLL_TIME); /* start time stamp */ - put_le32(pb, asf->is_streamed ? 3 : 2); /* ??? */ + put_le32(pb, (asf->is_streamed || url_is_streamed(pb)) ? 3 : 2); /* ??? */ put_le32(pb, asf->packet_size); /* packet size */ put_le32(pb, asf->packet_size); /* packet size */ put_le32(pb, bit_rate); /* Nominal data rate in bps */ @@ -498,7 +498,7 @@ asf->nb_index_count = 0; asf->maximum_packet = 0; - if (asf_write_header1(s, 0, 50) < 0) { + if (asf_write_header1(s, 0, 0) < 0) { //av_free(asf); return -1; } @@ -796,7 +796,7 @@ } put_flush_packet(&s->pb); - if (asf->is_streamed) { + if (asf->is_streamed || url_is_streamed(&s->pb)) { put_chunk(s, 0x4524, 0, 0); /* end of stream */ } else { /* rewrite an updated header */