Revision cb077b7a

View differences:

libavcodec/h264.c
2035 2035
    CHECKED_ALLOCZ(h->slice_table_base  , (big_mb_num+s->mb_stride) * sizeof(uint8_t))
2036 2036
    CHECKED_ALLOCZ(h->cbp_table, big_mb_num * sizeof(uint16_t))
2037 2037

  
2038
    if( h->pps.cabac ) {
2039 2038
        CHECKED_ALLOCZ(h->chroma_pred_mode_table, big_mb_num * sizeof(uint8_t))
2040 2039
        CHECKED_ALLOCZ(h->mvd_table[0], 32*big_mb_num * sizeof(uint16_t));
2041 2040
        CHECKED_ALLOCZ(h->mvd_table[1], 32*big_mb_num * sizeof(uint16_t));
2042 2041
        CHECKED_ALLOCZ(h->direct_table, 32*big_mb_num * sizeof(uint8_t));
2043
    }
2044 2042

  
2045 2043
    memset(h->slice_table_base, -1, (big_mb_num+s->mb_stride)  * sizeof(uint8_t));
2046 2044
    h->slice_table= h->slice_table_base + s->mb_stride*2 + 1;

Also available in: Unified diff