Revision 76d357fd

View differences:

libavcodec/ac3dec.c
1545 1545
    }
1546 1546
}
1547 1547

  
1548
static void dump_floats(const char *name, int prec, const float *tab, int n)
1549
{
1550
    int i;
1551

  
1552
    av_log(NULL, AV_LOG_INFO, "%s[%d]:\n", name, n);
1553
    for(i=0;i<n;i++) {
1554
        if ((i & 7) == 0)
1555
            av_log(NULL, AV_LOG_INFO, "%4d: ", i);
1556
        av_log(NULL, AV_LOG_INFO, " %8.*f", prec, tab[i]);
1557
        if ((i & 7) == 7)
1558
            av_log(NULL, AV_LOG_INFO, "\n");
1559
    }
1560
    if ((i & 7) != 0)
1561
        av_log(NULL, AV_LOG_INFO, "\n");
1562
}
1563

  
1564 1548
/* This function performs the imdct on 256 sample transform
1565 1549
 * coefficients.
1566 1550
 */
......
1894 1878
        av_log(NULL, AV_LOG_ERROR, "Error in routine get_transform_coeffs\n");
1895 1879
        return -1;
1896 1880
    }
1897
    /*for (i = 0; i < nfchans; i++)
1898
        dump_floats("channel transform coefficients", 10, ctx->transform_coeffs[i + 1], BLOCK_SIZE);*/
1899 1881

  
1900 1882
    /* recover coefficients if rematrixing is in use */
1901 1883
    if (ctx->rematflg)
......
1904 1886
    do_downmix(ctx);
1905 1887

  
1906 1888
    do_imdct(ctx);
1907
    /*for(i = 0; i < nfchans; i++)
1908
        dump_floats("channel output", 10, ctx->output[i + 1], BLOCK_SIZE);*/
1909 1889

  
1910 1890
    return 0;
1911 1891
}
......
1920 1900
        return (i - 0x43c00000);
1921 1901
}
1922 1902

  
1923
static int frame_count = 0;
1924

  
1925 1903
/* Decode ac3 frame.
1926 1904
 *
1927 1905
 * @param avctx Pointer to AVCodecContext
......
1941 1919
    for (i = 0; i < 6; i++)
1942 1920
        int_ptr[i] = (int32_t *)(&ctx->output[i]);
1943 1921

  
1944
    //av_log(NULL, AV_LOG_INFO, "decoding frame %d buf_size = %d\n", frame_count++, buf_size);
1945

  
1946 1922
    //Synchronize the frame.
1947 1923
    frame_start = ac3_synchronize(buf, buf_size);
1948 1924
    if (frame_start == -1) {

Also available in: Unified diff