Revision 827d43bb libavcodec/vp8.c

View differences:

libavcodec/vp8.c
117 117
     */
118 118
    DECLARE_ALIGNED(16, uint8_t, non_zero_count_cache)[6][4];
119 119
    DECLARE_ALIGNED(16, DCTELEM, block)[6][4][16];
120
    DECLARE_ALIGNED(16, DCTELEM, block_dc)[16];
120 121
    uint8_t intra4x4_pred_mode_mb[16];
121 122

  
122 123
    int chroma_pred_mode;    ///< 8x8c pred mode of the current macroblock
......
864 865
void decode_mb_coeffs(VP8Context *s, VP56RangeCoder *c, VP8Macroblock *mb,
865 866
                      uint8_t t_nnz[9], uint8_t l_nnz[9])
866 867
{
867
    LOCAL_ALIGNED_16(DCTELEM, dc,[16]);
868 868
    int i, x, y, luma_start = 0, luma_ctx = 3;
869 869
    int nnz_pred, nnz, nnz_total = 0;
870 870
    int segment = s->segment;
871 871

  
872 872
    if (mb->mode != MODE_I4x4 && mb->mode != VP8_MVMODE_SPLIT) {
873
        AV_ZERO128(dc);
874
        AV_ZERO128(dc+8);
875 873
        nnz_pred = t_nnz[8] + l_nnz[8];
876 874

  
877 875
        // decode DC values and do hadamard
878
        nnz = decode_block_coeffs(c, dc, s->prob->token[1], 0, nnz_pred,
876
        nnz = decode_block_coeffs(c, s->block_dc, s->prob->token[1], 0, nnz_pred,
879 877
                                  s->qmat[segment].luma_dc_qmul);
880 878
        l_nnz[8] = t_nnz[8] = !!nnz;
881 879
        nnz_total += nnz;
882
        s->vp8dsp.vp8_luma_dc_wht(s->block, dc);
880
        s->vp8dsp.vp8_luma_dc_wht(s->block, s->block_dc);
883 881
        luma_start = 1;
884 882
        luma_ctx = 0;
885 883
    }

Also available in: Unified diff