# HG changeset patch # User michael # Date 1267111752 0 # Node ID 43a179c59c571118dfe52957201f2ca5d3ea9792 # Parent d5dd13f345fcad5d99ab053dbe279558dfd66f0b Dont allocate direct_table 8 times too large. diff -r d5dd13f345fc -r 43a179c59c57 h264.c --- a/h264.c Thu Feb 25 15:27:55 2010 +0000 +++ b/h264.c Thu Feb 25 15:29:12 2010 +0000 @@ -756,7 +756,7 @@ FF_ALLOCZ_OR_GOTO(h->s.avctx, h->chroma_pred_mode_table, big_mb_num * sizeof(uint8_t), fail) FF_ALLOCZ_OR_GOTO(h->s.avctx, h->mvd_table[0], 16*big_mb_num * sizeof(uint8_t), fail); FF_ALLOCZ_OR_GOTO(h->s.avctx, h->mvd_table[1], 16*big_mb_num * sizeof(uint8_t), fail); - FF_ALLOCZ_OR_GOTO(h->s.avctx, h->direct_table, 32*big_mb_num * sizeof(uint8_t) , fail); + FF_ALLOCZ_OR_GOTO(h->s.avctx, h->direct_table, 4*big_mb_num * sizeof(uint8_t) , fail); FF_ALLOCZ_OR_GOTO(h->s.avctx, h->list_counts, big_mb_num * sizeof(uint8_t), fail) memset(h->slice_table_base, -1, (big_mb_num+s->mb_stride) * sizeof(*h->slice_table_base));