Revision 1a31840c

View differences:

libavformat/movenc.c
697 697
    MOVContext *mov = s->priv_data;
698 698
    ByteIOContext *pb = &s->pb;
699 699
    AVCodecContext *enc;
700
    int cl, id;
700 701

  
701 702
    enc = &s->streams[stream_index]->codec;
702 703
    if (!url_is_streamed(&s->pb)) {
......
740 741
            }
741 742
        }
742 743

  
743
        int cl = trk->entry / MOV_INDEX_CLUSTER_SIZE;
744
        int id = trk->entry % MOV_INDEX_CLUSTER_SIZE;
744
        cl = trk->entry / MOV_INDEX_CLUSTER_SIZE;
745
        id = trk->entry % MOV_INDEX_CLUSTER_SIZE;
745 746

  
746 747
        if (trk->ents_allocated <= trk->entry) {
747 748
            trk->cluster = av_realloc(trk->cluster, (cl+1)*sizeof(void*)); 

Also available in: Unified diff