~ubuntu-branches/ubuntu/utopic/ffmpeg-debian/utopic

« back to all changes in this revision

Viewing changes to libavcodec/w32thread.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-11-15 19:44:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115194429-zwlw86ht1rctd8z9
Tags: 3:0.svn20081115-1ubuntu1
* merge from debian.
* keep myself in the maintainer field. If you are touching this or the
  'ffmpeg' package in multiverse, please get in touch with me. Both
  source packages come from the same packaging branch.
* drop dependency on faad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    av_freep(&s->thread_opaque);
75
75
}
76
76
 
77
 
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void **arg, int *ret, int count){
 
77
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
78
78
    ThreadContext *c= s->thread_opaque;
79
79
    int i;
80
80
 
84
84
    /* note, we can be certain that this is not called with the same AVCodecContext by different threads at the same time */
85
85
 
86
86
    for(i=0; i<count; i++){
87
 
        c[i].arg= arg[i];
 
87
        c[i].arg= (char*)arg + i*size;
88
88
        c[i].func= func;
89
89
        c[i].ret= 12345;
90
90