}ThreadContext;
-void thread_func(void *v){
+void attribute_align_arg thread_func(void *v){
ThreadContext *c= v;
for(;;){
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;
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;