summaryrefslogtreecommitdiffstats
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 00:04:33 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 00:04:33 +0000
commit4f18e46a4223ccb4d1006a690f126c18bd258494 (patch)
treecdb30713341e9b8df1ca04d5e6e66dd8def08916 /postproc/yuv2rgb.c
parentaf64078ef4722a047c31df9becfaf0a36816afed (diff)
downloadmpv-4f18e46a4223ccb4d1006a690f126c18bd258494.tar.bz2
mpv-4f18e46a4223ccb4d1006a690f126c18bd258494.tar.xz
avoid multiple init
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7770 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index 96764d177c..cec5f3f9fb 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -232,7 +232,7 @@ const int32_t Inverse_Table_6_9[8][4] = {
void *yuv2rgb_c_init (unsigned bpp, int mode, void *table_rV[256], void *table_gU[256], int table_gV[256], void *table_bU[256]);
-yuv2rgb_fun yuv2rgb;
+yuv2rgb_fun yuv2rgb= NULL;
static void (* yuv2rgb_c_internal) (uint8_t *, uint8_t *,
uint8_t *, uint8_t *,
@@ -263,7 +263,7 @@ void * table_bU[256];
void yuv2rgb_init (unsigned bpp, int mode)
{
- yuv2rgb = NULL;
+ if(yuv2rgb) return;
#ifdef CAN_COMPILE_X86_ASM
if(gCpuCaps.hasMMX2)
{