Revision e2720b6b

View differences:

libavcodec/vp3.c
456 456
 */
457 457
static int unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb)
458 458
{
459
    int superblock_starts[3] = { 0, s->u_superblock_start, s->v_superblock_start };
459 460
    int bit = 0;
460 461
    int current_superblock = 0;
461 462
    int current_run = 0;
......
547 548
    memset(s->macroblock_coding, MODE_COPY, s->macroblock_count);
548 549

  
549 550
    for (plane = 0; plane < 3; plane++) {
550
        int sb_start = (int[3]){ 0, s->u_superblock_start, s->v_superblock_start }[plane];
551
        int sb_start = superblock_starts[plane];
551 552
        int sb_end = sb_start + (plane ? s->c_superblock_count : s->y_superblock_count);
552 553
        int num_coded_frags = 0;
553 554

  

Also available in: Unified diff