[Ffmpeg-devel] [PATCH] fix compilation when Snow ENcoder is disabled
Diego Biurrun
diego
Sun Aug 13 21:50:08 CEST 2006
On Sun, Aug 13, 2006 at 07:21:55PM +0200, Guillaume POIRIER wrote:
>
> 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.
>
> --- libavcodec/mpegvideo.h (r??vision 5995)
> +++ libavcodec/mpegvideo.h (copie de travail)
> @@ -909,7 +909,11 @@
> +void static h263_encode_init(MpegEncContext *s) {assert(0);}
> --- libavcodec/snow.h (r??vision 5995)
> +++ libavcodec/snow.h (copie de travail)
> @@ -125,10 +125,14 @@
> +int static w53_32_c(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, int h) {assert (0);}
> +int static w97_32_c(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, int h) {assert (0);}
You should put the static keyword at the beginning of the line, gcc will
issue a warning otherwise.
Diego
More information about the ffmpeg-devel
mailing list