Browse Source

Merge commit 'c0e6b8cab874db97b6818007bc86507c8d213083'

* commit 'c0e6b8cab874db97b6818007bc86507c8d213083':
  mpegvideo: Mark one function as static

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
11f86ec204
2 changed files with 3 additions and 5 deletions
  1. +3
    -3
      libavcodec/mpegvideo.c
  2. +0
    -2
      libavcodec/mpegvideo.h

+ 3
- 3
libavcodec/mpegvideo.c View File

@@ -2329,7 +2329,7 @@ static inline void MPV_motion_lowres(MpegEncContext *s,
/** /**
* find the lowest MB row referenced in the MVs * find the lowest MB row referenced in the MVs
*/ */
int ff_mpv_lowest_referenced_row(MpegEncContext *s, int dir)
static int lowest_referenced_row(MpegEncContext *s, int dir)
{ {
int my_max = INT_MIN, my_min = INT_MAX, qpel_shift = !s->quarter_sample; int my_max = INT_MIN, my_min = INT_MAX, qpel_shift = !s->quarter_sample;
int my, off, i, mvs; int my, off, i, mvs;
@@ -2524,12 +2524,12 @@ void mpv_decode_mb_internal(MpegEncContext *s, int16_t block[12][64],
if(HAVE_THREADS && s->avctx->active_thread_type&FF_THREAD_FRAME) { if(HAVE_THREADS && s->avctx->active_thread_type&FF_THREAD_FRAME) {
if (s->mv_dir & MV_DIR_FORWARD) { if (s->mv_dir & MV_DIR_FORWARD) {
ff_thread_await_progress(&s->last_picture_ptr->tf, ff_thread_await_progress(&s->last_picture_ptr->tf,
ff_mpv_lowest_referenced_row(s, 0),
lowest_referenced_row(s, 0),
0); 0);
} }
if (s->mv_dir & MV_DIR_BACKWARD) { if (s->mv_dir & MV_DIR_BACKWARD) {
ff_thread_await_progress(&s->next_picture_ptr->tf, ff_thread_await_progress(&s->next_picture_ptr->tf,
ff_mpv_lowest_referenced_row(s, 1),
lowest_referenced_row(s, 1),
0); 0);
} }
} }


+ 0
- 2
libavcodec/mpegvideo.h View File

@@ -631,8 +631,6 @@ void ff_mpv_report_decode_progress(MpegEncContext *s);
int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx); int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx);
void ff_mpv_frame_end(MpegEncContext *s); void ff_mpv_frame_end(MpegEncContext *s);


int ff_mpv_lowest_referenced_row(MpegEncContext *s, int dir);

int ff_mpv_encode_init(AVCodecContext *avctx); int ff_mpv_encode_init(AVCodecContext *avctx);
void ff_mpv_encode_init_x86(MpegEncContext *s); void ff_mpv_encode_init_x86(MpegEncContext *s);




Loading…
Cancel
Save