Revision afd1a2d8 libavcodec/mace.c

View differences:

libavcodec/mace.c
410 410
#ifdef DEBUG
411 411
puts("mace_decode_frame[3]()");
412 412
#endif
413
        Exp1to3(c, buf, samples, buf_size / 2, avctx->channels, 1);
413
        Exp1to3(c, buf, samples, buf_size / 2 / avctx->channels, avctx->channels, 1);
414 414
        if (avctx->channels == 2)
415
            Exp1to3(c, buf, samples+1, buf_size / 2, 2, 2);
415
            Exp1to3(c, buf, samples+1, buf_size / 2 / 2, 2, 2);
416 416
        *data_size = 2 * 3 * buf_size;
417 417
        break;
418 418
    case CODEC_ID_MACE6:
419 419
#ifdef DEBUG
420 420
puts("mace_decode_frame[6]()");
421 421
#endif
422
        Exp1to6(c, buf, samples, buf_size, avctx->channels, 1);
422
        Exp1to6(c, buf, samples, buf_size / avctx->channels, avctx->channels, 1);
423 423
        if (avctx->channels == 2)
424
            Exp1to6(c, buf, samples+1, buf_size, 2, 2);
424
            Exp1to6(c, buf, samples+1, buf_size / 2, 2, 2);
425 425
        *data_size = 2 * 6 * buf_size;
426 426
        break;
427 427
    default:

Also available in: Unified diff