Revision f124b087 libavformat/utils.c

View differences:

libavformat/utils.c
2556 2556

  
2557 2557
void av_close_input_stream(AVFormatContext *s)
2558 2558
{
2559
    int i;
2560
    AVStream *st;
2561

  
2562 2559
    flush_packet_queue(s);
2563 2560
    if (s->iformat->read_close)
2564 2561
        s->iformat->read_close(s);
2562
    avformat_free_context(s);
2563
}
2564

  
2565
void avformat_free_context(AVFormatContext *s)
2566
{
2567
    int i;
2568
    AVStream *st;
2569

  
2565 2570
    for(i=0;i<s->nb_streams;i++) {
2566 2571
        /* free all data in a stream component */
2567 2572
        st = s->streams[i];

Also available in: Unified diff