if (url_is_streamed(&s->pb)) {
if (asf->is_streamed) {
static int put_packet(AVFormatContext *s,                        unsigned int timestamp, unsigned int duration,                        int nb_frames, int padsize){    ASFContext *asf = s->priv_data;    ByteIOContext *pb = &s->pb;    int flags;    if (url_is_streamed(&s->pb)) {        put_chunk(s, 0x4424, asf->packet_size, 0);    }    put_byte(pb, 0x82);    put_le16(pb, 0);        flags = 0x01; /* nb segments present */    if (padsize > 0) {        if (padsize < 256)            flags |= 0x08;        else            flags |= 0x10;    }    put_byte(pb, flags); /* flags */    put_byte(pb, 0x5d);    if (flags & 0x10)        put_le16(pb, padsize - 2);    if (flags & 0x08)        put_byte(pb, padsize - 1);    put_le32(pb, timestamp);    put_le16(pb, duration);    put_byte(pb, nb_frames | 0x80);    return PACKET_HEADER_SIZE + ((flags & 0x18) >> 3);}