Commit c7002e3d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '12b54a1f'

* commit '12b54a1f':
  mpegvideo: remove an unused function parameter
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 1c653939 12b54a1f
...@@ -455,7 +455,7 @@ static void free_picture(MpegEncContext *s, Picture *pic) ...@@ -455,7 +455,7 @@ static void free_picture(MpegEncContext *s, Picture *pic)
} }
} }
static int init_duplicate_context(MpegEncContext *s, MpegEncContext *base) static int init_duplicate_context(MpegEncContext *s)
{ {
int y_size = s->b8_stride * (2 * s->mb_height + 1); int y_size = s->b8_stride * (2 * s->mb_height + 1);
int c_size = s->mb_stride * (s->mb_height + 1); int c_size = s->mb_stride * (s->mb_height + 1);
...@@ -958,7 +958,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) ...@@ -958,7 +958,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
} }
for (i = 0; i < nb_slices; i++) { for (i = 0; i < nb_slices; i++) {
if (init_duplicate_context(s->thread_context[i], s) < 0) if (init_duplicate_context(s->thread_context[i]) < 0)
goto fail; goto fail;
s->thread_context[i]->start_mb_y = s->thread_context[i]->start_mb_y =
(s->mb_height * (i) + nb_slices / 2) / nb_slices; (s->mb_height * (i) + nb_slices / 2) / nb_slices;
...@@ -966,7 +966,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) ...@@ -966,7 +966,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
(s->mb_height * (i + 1) + nb_slices / 2) / nb_slices; (s->mb_height * (i + 1) + nb_slices / 2) / nb_slices;
} }
} else { } else {
if (init_duplicate_context(s, s) < 0) if (init_duplicate_context(s) < 0)
goto fail; goto fail;
s->start_mb_y = 0; s->start_mb_y = 0;
s->end_mb_y = s->mb_height; s->end_mb_y = s->mb_height;
...@@ -1088,7 +1088,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s) ...@@ -1088,7 +1088,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s)
} }
for (i = 0; i < nb_slices; i++) { for (i = 0; i < nb_slices; i++) {
if (init_duplicate_context(s->thread_context[i], s) < 0) if (init_duplicate_context(s->thread_context[i]) < 0)
goto fail; goto fail;
s->thread_context[i]->start_mb_y = s->thread_context[i]->start_mb_y =
(s->mb_height * (i) + nb_slices / 2) / nb_slices; (s->mb_height * (i) + nb_slices / 2) / nb_slices;
...@@ -1096,7 +1096,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s) ...@@ -1096,7 +1096,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s)
(s->mb_height * (i + 1) + nb_slices / 2) / nb_slices; (s->mb_height * (i + 1) + nb_slices / 2) / nb_slices;
} }
} else { } else {
if (init_duplicate_context(s, s) < 0) if (init_duplicate_context(s) < 0)
goto fail; goto fail;
s->start_mb_y = 0; s->start_mb_y = 0;
s->end_mb_y = s->mb_height; s->end_mb_y = s->mb_height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment