Mercurial > libavcodec.hg
diff mpegvideo_enc.c @ 11531:31033caa5344 libavcodec
Change ref_index structure so it matches how its organized in h264.
Also revert the related error concealment hotfix.
author | michael |
---|---|
date | Tue, 23 Mar 2010 02:17:04 +0000 |
parents | 2029a714b794 |
children | baece61a55cf |
line wrap: on
line diff
--- a/mpegvideo_enc.c Mon Mar 22 21:12:31 2010 +0000 +++ b/mpegvideo_enc.c Tue Mar 23 02:17:04 2010 +0000 @@ -197,7 +197,7 @@ memcpy(dst->motion_val[i], src->motion_val[i], 2*stride*height*sizeof(int16_t)); } if(src->ref_index[i] && src->ref_index[i] != dst->ref_index[i]){ - memcpy(dst->ref_index[i], src->ref_index[i], s->b8_stride*2*s->mb_height*sizeof(int8_t)); + memcpy(dst->ref_index[i], src->ref_index[i], s->mb_stride*4*s->mb_height*sizeof(int8_t)); } } }