aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-31 00:42:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-31 00:42:43 +0000
commit5d0e4cb87ac967be8ffd3e2c161026e082e17b8c (patch)
treeddc1201e66b280fbd5277aaf8241b45a6cf3bf1a /libavcodec/h264.c
parent28869757739254cd7c289a2f4c3c72a0790188d3 (diff)
downloadffmpeg-5d0e4cb87ac967be8ffd3e2c161026e082e17b8c.tar.gz
segfault fix
Originally committed as revision 3656 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 1518a07d7c..1ea4289420 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2186,10 +2186,10 @@ static int alloc_tables(H264Context *h){
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));
}