diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-14 17:55:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-14 17:55:50 +0000 |
commit | 37923cd32d191a3a2a7db3b632c66f9b06b7f1ac (patch) | |
tree | 045df01fde64ec3441c7b4c881d421b333fb2867 | |
parent | 67086c8552ffbdbf5dc4971c9633ea02ca8624ca (diff) | |
download | ffmpeg-37923cd32d191a3a2a7db3b632c66f9b06b7f1ac.tar.gz |
alignment fix
Originally committed as revision 2890 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 28df554d2a..58d7430e33 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -340,15 +340,15 @@ static int alloc_picture(MpegEncContext *s, Picture *pic, int shared){ pic->mb_type= pic->mb_type_base + s->mb_stride+1; if(s->out_format == FMT_H264){ for(i=0; i<2; i++){ - CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b4_array_size+1) * sizeof(int16_t)) - pic->motion_val[i]= pic->motion_val_base[i]+1; + CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b4_array_size+2) * sizeof(int16_t)) + pic->motion_val[i]= pic->motion_val_base[i]+2; CHECKED_ALLOCZ(pic->ref_index[i] , b8_array_size * sizeof(uint8_t)) } pic->motion_subsample_log2= 2; }else if(s->out_format == FMT_H263 || s->encoding || (s->avctx->debug&FF_DEBUG_MV) || (s->avctx->debug_mv)){ for(i=0; i<2; i++){ - CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b8_array_size+1) * sizeof(int16_t)*2) //FIXME - pic->motion_val[i]= pic->motion_val_base[i]+1; + CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b8_array_size+2) * sizeof(int16_t)*2) //FIXME + pic->motion_val[i]= pic->motion_val_base[i]+2; } pic->motion_subsample_log2= 3; } |