[Ffmpeg-devel] [PATCH] fix compilation when Snow ENcoder is disabled
Michael Niedermayer
michaelni
Sun Aug 13 21:42:15 CEST 2006
Hi
On Sun, Aug 13, 2006 at 07:21:55PM +0200, Guillaume POIRIER wrote:
[...]
> >#ifdef CONFIG_ENCODER
> > void h263_encode_init(MpegEncContext *s);
> >#else
> > static void h263_encode_init(MpegEncContext *s) {assert(0);}
^^^^^^
> >#endif
>
>
> The problem is that you end up having multiple definitions of the same
> function. This can be "solved" by using the "static" keyword, as in the
> attached patch.
> With this patch, GCC3.3 and 4.2 are happy when encoders are disabled.
>
> What do you think about it?
well as its what i suggested iam fine with it
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list