summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-08-30 15:43:10 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-08-30 15:43:10 +0000
commitfc09cc5f4efab0bcd69b562278aa5f1b70a6f3eb (patch)
treef46bca1f53a644d986d36d1070189cc24461deb7
parentd565bee165faa5a3152431fb13cdb1565bebdce3 (diff)
downloadxine-lib-fc09cc5f4efab0bcd69b562278aa5f1b70a6f3eb.tar.gz
xine-lib-fc09cc5f4efab0bcd69b562278aa5f1b70a6f3eb.tar.bz2
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
-rw-r--r--src/libffmpeg/libavcodec/mpegvideo.h2
1 files changed, 1 insertions, 1 deletions
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];