# HG changeset patch # User lorenm # Date 1115156958 0 # Node ID c337f851d0f9a13e50e08bec3cad8b3bae8c1421 # Parent d5de8b677bad35f4ff7c8497d76a13744b6c612b fix storage of motion vectors for frames with more than 4096 macroblocks. diff -r d5de8b677bad -r c337f851d0f9 h264.c --- a/h264.c Tue May 03 06:53:59 2005 +0000 +++ b/h264.c Tue May 03 21:49:18 2005 +0000 @@ -209,8 +209,8 @@ */ int block_offset[2*(16+8)]; - uint16_t *mb2b_xy; //FIXME are these 4 a good idea? - uint16_t *mb2b8_xy; + uint32_t *mb2b_xy; //FIXME are these 4 a good idea? + uint32_t *mb2b8_xy; int b_stride; //FIXME use s->b4_stride int b8_stride; @@ -2667,8 +2667,8 @@ memset(h->slice_table_base, -1, big_mb_num * sizeof(uint8_t)); h->slice_table= h->slice_table_base + s->mb_stride + 1; - CHECKED_ALLOCZ(h->mb2b_xy , big_mb_num * sizeof(uint16_t)); - CHECKED_ALLOCZ(h->mb2b8_xy , big_mb_num * sizeof(uint16_t)); + CHECKED_ALLOCZ(h->mb2b_xy , big_mb_num * sizeof(uint32_t)); + CHECKED_ALLOCZ(h->mb2b8_xy , big_mb_num * sizeof(uint32_t)); for(y=0; ymb_height; y++){ for(x=0; xmb_width; x++){ const int mb_xy= x + y*s->mb_stride;