[FFmpeg-devel] libavcodec/pthread.c:138: error: no previous prototype for 'avcodec_thread_execute2'

avcoder ffmpeg
Mon Mar 8 11:56:24 CET 2010


avcodec_thread_execute2() is not a global function, so do not pollute avcodec.h

just add static before:
static int avcodec_thread_execute2(AVCodecContext *s, int
(*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret,
int count)

On Mon, Mar 8, 2010 at 6:43 PM, Benoit Fouet <benoit.fouet at free.fr> wrote:
>
> Index: libavcodec/avcodec.h
> ===================================================================
> --- libavcodec/avcodec.h ? ? ? ?(revision 22319)
> +++ libavcodec/avcodec.h ? ? ? ?(working copy)
> @@ -3256,6 +3256,7 @@ enum PixelFormat avcodec_default_get_for
> ?int avcodec_thread_init(AVCodecContext *s, int thread_count);
> ?void avcodec_thread_free(AVCodecContext *s);
> ?int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
> +int avcodec_thread_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
> ?int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
> ?int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
> ?//FIXME func typedef

-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2



More information about the ffmpeg-devel mailing list