Revision 0063c05c libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
229 229

  
230 230
        CHECKED_ALLOCZ(pic->mbskip_table , mb_array_size * sizeof(uint8_t)+2) //the +2 is for the slice end check
231 231
        CHECKED_ALLOCZ(pic->qscale_table , mb_array_size * sizeof(uint8_t))
232
        CHECKED_ALLOCZ(pic->mb_type_base , big_mb_num    * sizeof(uint32_t))
233
        pic->mb_type= pic->mb_type_base + s->mb_stride+1;
232
        CHECKED_ALLOCZ(pic->mb_type_base , (big_mb_num + s->mb_stride) * sizeof(uint32_t))
233
        pic->mb_type= pic->mb_type_base + 2*s->mb_stride+1;
234 234
        if(s->out_format == FMT_H264){
235 235
            for(i=0; i<2; i++){
236 236
                CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b4_array_size+4)  * sizeof(int16_t))

Also available in: Unified diff