Browse Source

Merge commit '12b54a1f39fee22fa0399825ae47a43e60bad4c5'

* commit '12b54a1f39fee22fa0399825ae47a43e60bad4c5':
  mpegvideo: remove an unused function parameter

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
c7002e3d3d
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      libavcodec/mpegvideo.c

+ 5
- 5
libavcodec/mpegvideo.c View File

@@ -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 c_size = s->mb_stride * (s->mb_height + 1);
@@ -958,7 +958,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
}

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;
s->thread_context[i]->start_mb_y =
(s->mb_height * (i) + nb_slices / 2) / nb_slices;
@@ -966,7 +966,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
(s->mb_height * (i + 1) + nb_slices / 2) / nb_slices;
}
} else {
if (init_duplicate_context(s, s) < 0)
if (init_duplicate_context(s) < 0)
goto fail;
s->start_mb_y = 0;
s->end_mb_y = s->mb_height;
@@ -1088,7 +1088,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s)
}

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;
s->thread_context[i]->start_mb_y =
(s->mb_height * (i) + nb_slices / 2) / nb_slices;
@@ -1096,7 +1096,7 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s)
(s->mb_height * (i + 1) + nb_slices / 2) / nb_slices;
}
} else {
if (init_duplicate_context(s, s) < 0)
if (init_duplicate_context(s) < 0)
goto fail;
s->start_mb_y = 0;
s->end_mb_y = s->mb_height;


Loading…
Cancel
Save