[Ffmpeg-devel] h264 tc0_table usage

Luca Barbato lu_zero
Sun Oct 15 16:46:45 CEST 2006


the tables are int

libavcodec/h264data.h
static const int tc0_table[52][3] = {
static const int alpha_table[52] = {
static const int beta_table[52] = {


But sometimes they are used as uint8_t sometimes as int.

libavcodec/h264.c
        int8_t tc[4];
        int8_t tc[4];
        int8_t tc[4];
        int8_t tc[4];

libavcodec/h264.c
            const int tc0 = tc0_table[index_a][bS[bS_index] - 1];
                int tc = tc0;
            const int tc = tc0_table[index_a][bS[bS_index] - 1] + 1;

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list