]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/os2thread.c
Add PCE support to the ADTS muxer.
[frescor/ffmpeg.git] / libavcodec / os2thread.c
index 583f255ea0b4f0850c4c58dbdc13495959b8b6f4..edebc9a6c8e95c2b96f50fe25a838f8269b5f051 100644 (file)
@@ -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;