view libvo/fastmemcpy.h @ 1362:11673118f37f

Fix segfault in DShow video decoder. Using directshow, the sh_video->out_out_buffer is NULL on the first few decoded frames, and is initialized in loader/DirectShow/outputpin.cpp, method COutputPin::Receive(), while the video is already running. Do not try to display a frame while sh_video->out_out_buffer is still NULL. Such a test was present in the previous to last revision of this file, but was lost in the last revision.
author jkeil
date Fri, 20 Jul 2001 11:35:47 +0000
parents 30e6a115a088
children 8db59073127e
line wrap: on
line source

#ifndef __MPLAYER_MEMCPY
#define __MPLAYER_MEMCPY 1

#include "../config.h"

#ifdef USE_FASTMEMCPY
#if defined(HAVE_MMX) || defined(HAVE_MMX2) || defined(HAVE_3DNOW) \
/*    || defined(HAVE_SSE) || defined(HAVE_SSE2) */
#include <stddef.h>

extern void * fast_memcpy(void * to, const void * from, size_t len);
#define memcpy(a,b,c) fast_memcpy(a,b,c)

#endif /* HAVE_MMX/MMX2/3DNOW/SSE/SSE2 */
#endif /* USE_FASTMEMCPY */
#endif