You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/svq1enc: Don't initialize unneeded block_index
The motion estimation code only uses block_index[0..3], so only initialize that (just like estimate_motion_thread() in mpegvideo_enc.c). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -290,8 +290,6 @@ static void init_block_index(MpegEncContext *const s)
|
||||
s->block_index[1]= s->b8_stride*(s->mb_y*2 ) + 1 + s->mb_x*2;
|
||||
s->block_index[2]= s->b8_stride*(s->mb_y*2 + 1) + s->mb_x*2;
|
||||
s->block_index[3]= s->b8_stride*(s->mb_y*2 + 1) + 1 + s->mb_x*2;
|
||||
s->block_index[4]= s->mb_stride*(s->mb_y + 1) + s->b8_stride*s->mb_height*2 + s->mb_x;
|
||||
s->block_index[5]= s->mb_stride*(s->mb_y + s->mb_height + 2) + s->b8_stride*s->mb_height*2 + s->mb_x;
|
||||
}
|
||||
|
||||
static int svq1_encode_plane(SVQ1EncContext *s, int plane,
|
||||
|
Reference in New Issue
Block a user