~ubuntu-branches/ubuntu/precise/ffmpeg-debian/precise

« back to all changes in this revision

Viewing changes to libavcodec/h264.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:
6626
6626
    }
6627
6627
}
6628
6628
 
6629
 
static int decode_slice(struct AVCodecContext *avctx, H264Context *h){
 
6629
static int decode_slice(struct AVCodecContext *avctx, void *arg){
 
6630
    H264Context *h = *(void**)arg;
6630
6631
    MpegEncContext * const s = &h->s;
6631
6632
    const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F;
6632
6633
 
7337
7338
    int i;
7338
7339
 
7339
7340
    if(context_count == 1) {
7340
 
        decode_slice(avctx, h);
 
7341
        decode_slice(avctx, &h);
7341
7342
    } else {
7342
7343
        for(i = 1; i < context_count; i++) {
7343
7344
            hx = h->thread_context[i];
7346
7347
        }
7347
7348
 
7348
7349
        avctx->execute(avctx, (void *)decode_slice,
7349
 
                       (void **)h->thread_context, NULL, context_count);
 
7350
                       (void **)h->thread_context, NULL, context_count, sizeof(void*));
7350
7351
 
7351
7352
        /* pull back stuff from slices to master context */
7352
7353
        hx = h->thread_context[context_count - 1];