diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2008-11-12 17:47:23 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2008-11-12 17:47:23 +0000 |
commit | 3a84713aaa5a0f83cbb3fdca62c83df609822c9c (patch) | |
tree | fb2e3a6047cc289f35bcb451bd82e85e5b2a18f1 /libavcodec/os2thread.c | |
parent | 52ece4105788c533625600b887e6bc762a97508d (diff) | |
download | ffmpeg-streaming-3a84713aaa5a0f83cbb3fdca62c83df609822c9c.zip ffmpeg-streaming-3a84713aaa5a0f83cbb3fdca62c83df609822c9c.tar.gz |
Making it easier to send arbitrary structures as work orders to MT workers
Originally committed as revision 15804 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/os2thread.c')
-rw-r--r-- | libavcodec/os2thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/os2thread.c b/libavcodec/os2thread.c index 583f255..edebc9a 100644 --- a/libavcodec/os2thread.c +++ b/libavcodec/os2thread.c @@ -81,7 +81,7 @@ void avcodec_thread_free(AVCodecContext *s){ av_freep(&s->thread_opaque); } -int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void **arg, int *ret, int count){ +int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){ ThreadContext *c= s->thread_opaque; int i; @@ -92,7 +92,7 @@ int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, vo for(i=0; i<count; i++){ - c[i].arg= arg[i]; + c[i].arg= (char*)arg + i*size; c[i].func= func; c[i].ret= 12345; |