# HG changeset patch # User michael # Date 1099183363 0 # Node ID 9cd834fc73253426ae7777ddbb9d10542eb66d54 # Parent 28eb7b1dcefca56284cda85eb46bf4650a86cb1c segfault fix diff -r 28eb7b1dcefc -r 9cd834fc7325 h264.c --- a/h264.c Sat Oct 30 02:16:27 2004 +0000 +++ b/h264.c Sun Oct 31 00:42:43 2004 +0000 @@ -2186,10 +2186,10 @@ CHECKED_ALLOCZ(h->non_zero_count , big_mb_num * 16 * sizeof(uint8_t)) CHECKED_ALLOCZ(h->slice_table_base , big_mb_num * sizeof(uint8_t)) CHECKED_ALLOCZ(h->top_border , s->mb_width * (16+8+8) * sizeof(uint8_t)) + CHECKED_ALLOCZ(h->cbp_table, big_mb_num * sizeof(uint16_t)) if( h->pps.cabac ) { CHECKED_ALLOCZ(h->chroma_pred_mode_table, big_mb_num * sizeof(uint8_t)) - CHECKED_ALLOCZ(h->cbp_table, big_mb_num * sizeof(uint16_t)) CHECKED_ALLOCZ(h->mvd_table[0], 32*big_mb_num * sizeof(uint16_t)); CHECKED_ALLOCZ(h->mvd_table[1], 32*big_mb_num * sizeof(uint16_t)); }