mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
Get rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride to
ones based on mb_stride in h264. about 20 cpu cycles faster overall per MB Originally committed as revision 22065 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -692,7 +692,7 @@ void ff_er_frame_end(MpegEncContext *s){
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
|
||||
|
||||
for(i=0; i<2; i++){
|
||||
pic->ref_index[i]= av_mallocz(size * sizeof(uint8_t));
|
||||
pic->ref_index[i]= av_mallocz(s->mb_stride * s->mb_height * 4 * sizeof(uint8_t));
|
||||
pic->motion_val_base[i]= av_mallocz((size+4) * 2 * sizeof(uint16_t));
|
||||
pic->motion_val[i]= pic->motion_val_base[i]+4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user