Revision e1315fb1

View differences:

libavformat/asf-enc.c
311 311
    put_le64(pb, duration); /* end time stamp (in 100ns units) */
312 312
    put_le64(pb, asf->duration); /* duration (in 100ns units) */
313 313
    put_le64(pb, PREROLL_TIME); /* start time stamp */
314
    put_le32(pb, asf->is_streamed ? 3 : 2); /* ??? */
314
    put_le32(pb, (asf->is_streamed || url_is_streamed(pb)) ? 3 : 2); /* ??? */
315 315
    put_le32(pb, asf->packet_size); /* packet size */
316 316
    put_le32(pb, asf->packet_size); /* packet size */
317 317
    put_le32(pb, bit_rate); /* Nominal data rate in bps */
......
498 498
    asf->nb_index_count = 0;
499 499
    asf->maximum_packet = 0;
500 500

  
501
    if (asf_write_header1(s, 0, 50) < 0) {
501
    if (asf_write_header1(s, 0, 0) < 0) {
502 502
        //av_free(asf);
503 503
        return -1;
504 504
    }
......
796 796
    }
797 797
    put_flush_packet(&s->pb);
798 798

  
799
    if (asf->is_streamed) {
799
    if (asf->is_streamed || url_is_streamed(&s->pb)) {
800 800
        put_chunk(s, 0x4524, 0, 0); /* end of stream */
801 801
    } else {
802 802
        /* rewrite an updated header */

Also available in: Unified diff