Revision b7f2fdde libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
170 170
    }
171 171
}
172 172

  
173
void put_flush_packet(AVIOContext *s)
173
void avio_flush(AVIOContext *s)
174 174
{
175 175
    flush_buffer(s);
176 176
    s->must_flush = 0;
......
393 393
    avio_write(s, buf, strlen(buf));
394 394
    return ret;
395 395
}
396
void put_flush_packet(AVIOContext *s)
397
{
398
    avio_flush(s);
399
}
396 400
#endif
397 401

  
398 402
int avio_put_str(AVIOContext *s, const char *str)
......
1013 1017

  
1014 1018
int url_close_buf(AVIOContext *s)
1015 1019
{
1016
    put_flush_packet(s);
1020
    avio_flush(s);
1017 1021
    return s->buf_ptr - s->buffer;
1018 1022
}
1019 1023
#endif
......
1141 1145
        padding = FF_INPUT_BUFFER_PADDING_SIZE;
1142 1146
    }
1143 1147

  
1144
    put_flush_packet(s);
1148
    avio_flush(s);
1145 1149

  
1146 1150
    *pbuffer = d->buffer;
1147 1151
    size = d->size;

Also available in: Unified diff