Revision f9900374 libavformat/mov.c

View differences:

libavformat/mov.c
1271 1271
        st->codec->sample_rate= 0; /* let decoder init parameters properly */
1272 1272
        break;
1273 1273
    }
1274

  
1275
    /* Do not need those anymore. */
1276
    av_freep(&sc->chunk_offsets);
1277
    av_freep(&sc->sample_to_chunk);
1278
    av_freep(&sc->sample_sizes);
1279
    av_freep(&sc->keyframes);
1280
    av_freep(&sc->stts_data);
1281

  
1274 1282
    return 0;
1275 1283
}
1276 1284

  
......
1545 1553
{
1546 1554
    MOVContext *mov = s->priv_data;
1547 1555
    ByteIOContext *pb = s->pb;
1548
    int i, err;
1556
    int err;
1549 1557
    MOV_atom_t atom = { 0, 0, 0 };
1550 1558

  
1551 1559
    mov->fc = s;
......
1564 1572
    }
1565 1573
    dprintf(mov->fc, "on_parse_exit_offset=%d\n", (int) url_ftell(pb));
1566 1574

  
1567
    for(i=0; i<s->nb_streams; i++) {
1568
        MOVStreamContext *sc = s->streams[i]->priv_data;
1569
        /* Do not need those anymore. */
1570
        av_freep(&sc->chunk_offsets);
1571
        av_freep(&sc->sample_to_chunk);
1572
        av_freep(&sc->sample_sizes);
1573
        av_freep(&sc->keyframes);
1574
        av_freep(&sc->stts_data);
1575
    }
1576 1575
    return 0;
1577 1576
}
1578 1577

  

Also available in: Unified diff