[MPlayer-dev-eng] [PATCH] vp7vfw encoding with compdata
Vladimir Voroshilov
voroshil at gmail.com
Sat Mar 31 05:44:31 CEST 2007
Hi.
2007/3/31, Gianluigi Tiesi <mplayer at netfarm.it>:
> vp7vfw needs a call to CoUninitialize()
> to work when compdata is passed.
> Attached a patch that calls coinit/uninit
> I've restricted it to win32 since I think it will break something
> on unix.
> And yes it's not the better place to call it but calling it from
> ve_vfw.c crashes and messes up a lot of variable, I think it's
> related to the fact that gcc says something about calling convention
> (maybe not correctly defined in ve_vfw and correctly in mencoder.c?)
>
> -->
> Warning: resolving _CoInitialize by linking to _CoInitialize at 4
> Use --enable-stdcall-fixup to disable these warnings
> Use --disable-stdcall-fixup to disable these fixups
>
I'm not sure, but think that proper declaration of CoInitialize should fix this.
gcc does not add STDCALL to CoInitialize, AFAIK.
try to either declare it like this:
HRESULT STDCALL CoInitialize(PVOID)
or add
#include <ole2.h>
(where it is already defined)
into your source.
--
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at jabber.ru
ICQ: 95587719
More information about the MPlayer-dev-eng
mailing list