Revision 1052b76f libavcodec/h264_refs.c

View differences:

libavcodec/h264_refs.c
323 323
            }
324 324
        }
325 325
    }
326
    for(j=0; j<h->ref_count[1]; j++){
327
        for(i=0; i<h->ref_count[0]; i++)
328
            h->implicit_weight[j][16+2*i] = h->implicit_weight[j][16+2*i+1] = h->implicit_weight[j][i];
329
        memcpy(h->implicit_weight[16+2*j],   h->implicit_weight[j], sizeof(*h->implicit_weight));
330
        memcpy(h->implicit_weight[16+2*j+1], h->implicit_weight[j], sizeof(*h->implicit_weight));
331
    }
332 326
}
333 327

  
334 328
/**

Also available in: Unified diff