Revision ca75a923

View differences:

libavformat/utils.c
2041 2041

  
2042 2042
void av_close_input_file(AVFormatContext *s)
2043 2043
{
2044
    int i, must_open_file;
2044
    int i;
2045 2045
    AVStream *st;
2046 2046

  
2047 2047
    /* free previous packet */
......
2068 2068
        av_freep(&s->programs[i]);
2069 2069
    }
2070 2070
    flush_packet_queue(s);
2071
    must_open_file = 1;
2072
    if (s->iformat->flags & AVFMT_NOFILE) {
2073
        must_open_file = 0;
2074
    }
2075
    if (must_open_file) {
2071
    if (!(s->iformat->flags & AVFMT_NOFILE))
2076 2072
        url_fclose(s->pb);
2077
    }
2078 2073
    av_freep(&s->priv_data);
2079 2074
    av_free(s);
2080 2075
}

Also available in: Unified diff