Revision 4c3dff6d libav/asf.c

View differences:

libav/asf.c
942 942
    return 0;
943 943

  
944 944
 fail:
945
    for(i=0;i<s->nb_streams;i++) {
945
     for(i=0;i<s->nb_streams;i++) {
946 946
        AVStream *st = s->streams[i];
947
	if (st)
947
	if (st) {
948 948
	    av_free(st->priv_data);
949
            av_free(st->codec.extradata);
950
	}
949 951
        av_free(st);
950 952
    }
951
    //av_free(asf);
952 953
    return -1;
953 954
}
954 955

  
......
1181 1182

  
1182 1183
static int asf_read_close(AVFormatContext *s)
1183 1184
{
1184
    //ASFContext *asf = s->priv_data;
1185 1185
    int i;
1186 1186

  
1187 1187
    for(i=0;i<s->nb_streams;i++) {
1188
        AVStream *st = s->streams[i];
1189
        av_free(st->priv_data);
1188
	AVStream *st = s->streams[i];
1189
	av_free(st->priv_data);
1190
	av_free(st->codec.extradata);
1190 1191
    }
1191
    //av_free(asf);
1192 1192
    return 0;
1193 1193
}
1194 1194

  

Also available in: Unified diff