Revision 703acd54 libavcodec/vp3.c

View differences:

libavcodec/vp3.c
286 286
}
287 287

  
288 288
/*
289
 * This function wipes out all of the fragment data.
290
 */
291
static void init_frame(Vp3DecodeContext *s, GetBitContext *gb)
292
{
293
    int i;
294

  
295
    /* zero out all of the fragment information */
296
    for (i = 0; i < s->fragment_count; i++) {
297
        s->all_fragments[i].motion_x = 0;
298
        s->all_fragments[i].motion_y = 0;
299
        s->all_fragments[i].dc = 0;
300
        s->all_fragments[i].qpi = 0;
301
    }
302
}
303

  
304
/*
305 289
 * This function sets up the dequantization tables used for a particular
306 290
 * frame.
307 291
 */
......
1771 1755
    s->current_frame.qscale_table= s->qscale_table; //FIXME allocate individual tables per AVFrame
1772 1756
    s->current_frame.qstride= 0;
1773 1757

  
1774
    init_frame(s, &gb);
1758
    memset(s->all_fragments, 0, s->fragment_count * sizeof(Vp3Fragment));
1775 1759

  
1776 1760
    if (unpack_superblocks(s, &gb)){
1777 1761
        av_log(s->avctx, AV_LOG_ERROR, "error in unpack_superblocks\n");

Also available in: Unified diff