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

Michael Niedermayer michaelni
Sat Mar 13 20:53:35 CET 2010


On Mon, Mar 08, 2010 at 04:57:24PM +0100, Benoit Fouet wrote:
[...]
> @@ -3255,9 +3255,11 @@ enum PixelFormat avcodec_default_get_for                                                                             
> 
>  int avcodec_thread_init(AVCodecContext *s, int thread_count);
>  void avcodec_thread_free(AVCodecContext *s);
> +#if LIBAVCODEC_VERSION_MAJOR < 53
>  int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);

>  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);

these 2 are usefull to set AVCodecContext->execute* to a non threaded
variant which a user app might wish to do


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100313/e725a48b/attachment.pgp>



More information about the ffmpeg-devel mailing list