From fc09cc5f4efab0bcd69b562278aa5f1b70a6f3eb Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Thu, 30 Aug 2001 15:43:10 +0000 Subject: Some users reported problems on Solaris SPARC with an undefined 'get_rl_index'. Apparently because the compiler was unable to inline a call to get_rl_index somewhere, and an 'extern inline' function does not output the assembler code for such a function. 'static inline' fixes the problem. (Another option to fix this problem is to use 'extern inline' in the header, *and* include a non-inline version of the same function in the library, too. See also the gcc.info file, "C Extensions" -> Node "An Inline Function is As Fast As a Macro") CVS patchset: 522 CVS date: 2001/08/30 15:43:10 --- src/libffmpeg/libavcodec/mpegvideo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libffmpeg/libavcodec/mpegvideo.h b/src/libffmpeg/libavcodec/mpegvideo.h index dccdeb24b..e4a5617e8 100644 --- a/src/libffmpeg/libavcodec/mpegvideo.h +++ b/src/libffmpeg/libavcodec/mpegvideo.h @@ -228,7 +228,7 @@ typedef struct RLTable { void init_rl(RLTable *rl); void init_vlc_rl(RLTable *rl); -extern inline int get_rl_index(const RLTable *rl, int last, int run, int level) +static inline int get_rl_index(const RLTable *rl, int last, int run, int level) { int index; index = rl->index_run[last][run]; -- cgit v1.2.3