~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/lagarith.c

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
    uint8_t mask2 = -(esc_count < 3);
370
370
    uint8_t *end = dst + (width - 2);
371
371
 
 
372
    avpriv_request_sample(l->avctx, "zero_run_line");
 
373
 
 
374
    memset(dst, 0, width);
 
375
 
372
376
output_zeros:
373
377
    if (l->zeros_rem) {
374
378
        count = FFMIN(l->zeros_rem, width - i);
423
427
    GetBitContext gb;
424
428
    lag_rac rac;
425
429
    const uint8_t *src_end = src + src_size;
 
430
    int ret;
426
431
 
427
432
    rac.avctx = l->avctx;
428
433
    l->zeros = 0;
440
445
            offset += 4;
441
446
        }
442
447
 
443
 
        init_get_bits(&gb, src + offset, src_size * 8);
 
448
        if ((ret = init_get_bits8(&gb, src + offset, src_size - offset)) < 0)
 
449
            return ret;
444
450
 
445
451
        if (lag_read_prob_header(&rac, &gb) < 0)
446
452
            return -1;
457
463
                   length);
458
464
    } else if (esc_count < 8) {
459
465
        esc_count -= 4;
 
466
        src ++;
 
467
        src_size --;
460
468
        if (esc_count > 0) {
461
469
            /* Zero run coding only, no range coding. */
462
470
            for (i = 0; i < height; i++) {