History

avcodec/mpegvideo_motion: Avoid constant function argument

Always 8.

Andreas Rheinhardt committed 2 years ago

Commit 60d4c8a1 parent 55e81301 file · +6 −6Browse files

Unified · Split

libavcodec/mpegvideo_motion.c+6−6
@@ -239,18 +239,18 @@ static void mpeg_motion_field(MpegEncContext *s, uint8_t *dest_y, · 238 unmodified lines
239239 int bottom_field, int field_select,
240240 uint8_t *const *ref_picture,
241241 op_pixels_func (*pix_op)[4],
242− int motion_x, int motion_y, int h, int mb_y)
242+ int motion_x, int motion_y, int mb_y)
243243 {
244244 #if !CONFIG_SMALL
245245 if (s->out_format == FMT_MPEG1)
246246 mpeg_motion_internal(s, dest_y, dest_cb, dest_cr, 1,
247247 bottom_field, field_select, ref_picture, pix_op,
248− motion_x, motion_y, h, 1, 0, mb_y);
248+ motion_x, motion_y, 8, 1, 0, mb_y);
249249 else
250250 #endif
251251 mpeg_motion_internal(s, dest_y, dest_cb, dest_cr, 1,
252252 bottom_field, field_select, ref_picture, pix_op,
253− motion_x, motion_y, h, 0, 0, mb_y);
253+ motion_x, motion_y, 8, 0, 0, mb_y);
254254 }
255255
256256 // FIXME: SIMDify, avg variant, 16x16 version
@@ -738,12 +738,12 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, · 481 unmodified lines
738738 mpeg_motion_field(s, dest_y, dest_cb, dest_cr,
739739 0, s->field_select[dir][0],
740740 ref_picture, pix_op,
741− s->mv[dir][0][0], s->mv[dir][0][1], 8, mb_y);
741+ s->mv[dir][0][0], s->mv[dir][0][1], mb_y);
742742 /* bottom field */
743743 mpeg_motion_field(s, dest_y, dest_cb, dest_cr,
744744 1, s->field_select[dir][1],
745745 ref_picture, pix_op,
746− s->mv[dir][1][0], s->mv[dir][1][1], 8, mb_y);
746+ s->mv[dir][1][0], s->mv[dir][1][1], mb_y);
747747 }
748748 } else {
749749 av_assert2(s->out_format == FMT_MPEG1);
@@ -790,7 +790,7 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, · 40 unmodified lines
790790 mpeg_motion_field(s, dest_y, dest_cb, dest_cr,
791791 j, j ^ i, ref_picture, pix_op,
792792 s->mv[dir][2 * i + j][0],
793− s->mv[dir][2 * i + j][1], 8, mb_y);
793+ s->mv[dir][2 * i + j][1], mb_y);
794794 pix_op = s->hdsp.avg_pixels_tab;
795795 }
796796 } else {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t