changeset 6917:167bd4bec8d1 libavcodec

Fix return type of ff_init_me().
author michael
date Wed, 28 May 2008 01:54:09 +0000
parents 603bdc5d8493
children c1b722b79649
files motion_est.c mpegvideo.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Wed May 28 01:34:46 2008 +0000
+++ b/motion_est.c	Wed May 28 01:54:09 2008 +0000
@@ -231,7 +231,7 @@
 static void zero_hpel(uint8_t *a, const uint8_t *b, int stride, int h){
 }
 
-void ff_init_me(MpegEncContext *s){
+int ff_init_me(MpegEncContext *s){
     MotionEstContext * const c= &s->me;
     int cache_size= FFMIN(ME_MAP_SIZE>>ME_MAP_SHIFT, 1<<ME_MAP_SHIFT);
     int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255);
@@ -303,6 +303,8 @@
     }
 
     c->temp= c->scratchpad;
+
+    return 0;
 }
 
 #if 0
--- a/mpegvideo.h	Wed May 28 01:34:46 2008 +0000
+++ b/mpegvideo.h	Wed May 28 01:54:09 2008 +0000
@@ -741,7 +741,7 @@
 void ff_fix_long_p_mvs(MpegEncContext * s);
 void ff_fix_long_mvs(MpegEncContext * s, uint8_t *field_select_table, int field_select,
                      int16_t (*mv_table)[2], int f_code, int type, int truncate);
-void ff_init_me(MpegEncContext *s);
+int ff_init_me(MpegEncContext *s);
 int ff_pre_estimate_p_frame_motion(MpegEncContext * s, int mb_x, int mb_y);
 int ff_epzs_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr,
                              int P[10][2], int src_index, int ref_index, int16_t (*last_mv)[2],