Revision 1eda87ce libavcodec/eatqi.c

View differences:

libavcodec/eatqi.c
40 40
    AVFrame frame;
41 41
    void *bitstream_buf;
42 42
    unsigned int bitstream_buf_size;
43
    DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
43 44
} TqiContext;
44 45

  
45 46
static av_cold int tqi_decode_init(AVCodecContext *avctx)
......
108 109
    const uint8_t *buf_end = buf+buf_size;
109 110
    TqiContext *t = avctx->priv_data;
110 111
    MpegEncContext *s = &t->s;
111
    DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
112 112

  
113 113
    s->width  = AV_RL16(&buf[0]);
114 114
    s->height = AV_RL16(&buf[2]);
......
136 136
    for (s->mb_y=0; s->mb_y<(avctx->height+15)/16; s->mb_y++)
137 137
    for (s->mb_x=0; s->mb_x<(avctx->width+15)/16; s->mb_x++)
138 138
    {
139
        tqi_decode_mb(s, block);
140
        tqi_idct_put(t, block);
139
        tqi_decode_mb(s, t->block);
140
        tqi_idct_put(t, t->block);
141 141
    }
142 142

  
143 143
    *data_size = sizeof(AVFrame);

Also available in: Unified diff