~ubuntu-branches/ubuntu/trusty/libdv/trusty

« back to all changes in this revision

Viewing changes to libdv/enctest.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-09-26 14:22:15 UTC
  • mfrom: (1.3.1 upstream) (3.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060926142215-q2arp4stpw6lrb5p
Tags: 1.0.0-1
* New upstream version.
* Removed patches:
  + [01_changelog_update_CVS]
  + [10_amd64_linkage_fix_CVS]
  + [10_inline_fixes_CVS]
  + [20_no_exec_stack_CVS]
  + [30_unload_memleak_fix_CVS]
  + [40_playdv_exit_fix_CVS]
  + [50_gcc41_asm_constraint_fixes_CVS]
    All of the above are part of the new upstream version.
* debian/control: In Build-Depends, remove alternative dependencies on
  obsolete SDL and X packages.
* debian/control: Complies with version 3.7.2 of Debian policy.
* debian/libdv4.README.Debian: Document lack of position-independent code
  in i386 version of libdv's shared library as mandated by recent versions
  of Debian policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        unsigned char dv[120000];
20
20
} frame[N];
21
21
 
 
22
int thread_number[N];
 
23
 
22
24
static void* t(void* arg)
23
25
{
24
 
        int i = (int)arg;
 
26
        int i = *((int*) arg);
25
27
        struct frame_t* f;
26
28
        unsigned char* rgb;
27
29
        dv_encoder_t* enc;
56
58
        memset(&frame, 100, sizeof(frame));     /* all frames are gray */
57
59
 
58
60
        for (i = 0; i < n; i++) {
 
61
          thread_number[i] = i;
59
62
                if (parallel)
60
 
                        pthread_create(&th[i], 0, t, (void*)i);
 
63
                  pthread_create(&th[i], 0, t, (void*) &thread_number[i]);
61
64
                else
62
 
                        t((void*)i);
 
65
                        t((void*) &thread_number[i]);
63
66
        }
64
67
 
65
68
        for (i = 0; i < n; i++) {