[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.116,1.117
Loren Merritt CVS
lorenm
Tue May 3 23:49:20 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv24553
Modified Files:
h264.c
Log Message:
fix storage of motion vectors for frames with more than 4096 macroblocks.
Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- h264.c 3 May 2005 06:53:59 -0000 1.116
+++ h264.c 3 May 2005 21:49:18 -0000 1.117
@@ -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; y<s->mb_height; y++){
for(x=0; x<s->mb_width; x++){
const int mb_xy= x + y*s->mb_stride;
More information about the ffmpeg-cvslog
mailing list