[FFmpeg-cvslog] r22056 - trunk/libavcodec/h264.c

michael subversion
Thu Feb 25 16:29:12 CET 2010


Author: michael
Date: Thu Feb 25 16:29:12 2010
New Revision: 22056

Log:
Dont allocate direct_table 8 times too  large.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Thu Feb 25 16:27:55 2010	(r22055)
+++ trunk/libavcodec/h264.c	Thu Feb 25 16:29:12 2010	(r22056)
@@ -756,7 +756,7 @@ int ff_h264_alloc_tables(H264Context *h)
     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));



More information about the ffmpeg-cvslog mailing list