libavcodec/truemotion2.c:149: error: Null Dereference
  pointer `&huff->bits` last assigned on line 146 could be null and is dereferenced by call to `tm2_read_tree()` at line 149, column 8.

libavcodec/truemotion2.c:117:1: start of procedure tm2_build_huff_table()
115. }
116. 
117. static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code)
     ^
118. {
119.     TM2Huff huff;

libavcodec/truemotion2.c:120:5: 
118. {
119.     TM2Huff huff;
120.     int res = 0;
         ^
121. 
122.     huff.val_bits = get_bits(&ctx->gb, 5);

libavcodec/truemotion2.c:122:5: 
120.     int res = 0;
121. 
122.     huff.val_bits = get_bits(&ctx->gb, 5);
         ^
123.     huff.max_bits = get_bits(&ctx->gb, 5);
124.     huff.min_bits = get_bits(&ctx->gb, 5);

libavcodec/get_bits.h:224:1: start of procedure get_bits()
  222.  * Read 1-25 bits.
  223.  */
  224. static inline unsigned int get_bits(GetBitContext *s, int n)
       ^
  225. {
  226.     register int tmp;

libavcodec/get_bits.h:227:5: 
  225. {
  226.     register int tmp;
  227.     OPEN_READER(re, s);
           ^
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:228:5: 
  226.     register int tmp;
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
           ^
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
    64. 
    65. #ifndef av_bswap32
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        ^
    67. {
    68.     return AV_BSWAP32C(x);

libavutil/bswap.h:68:5: 
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
    67. {
    68.     return AV_BSWAP32C(x);
            ^
    69. }
    70. #endif

libavutil/bswap.h:69:1: return from a call to av_bswap32
    67. {
    68.     return AV_BSWAP32C(x);
    69. }
        ^
    70. #endif
    71. 

libavcodec/get_bits.h:229:5: 
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
           ^
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);

libavcodec/get_bits.h:230:5: Condition is true
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
           ^
  231.     CLOSE_READER(re, s);
  232.     return tmp;

libavcodec/get_bits.h:231:5: 
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
           ^
  232.     return tmp;
  233. }

libavcodec/get_bits.h:232:5: 
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
  232.     return tmp;
           ^
  233. }
  234. 

libavcodec/get_bits.h:233:1: return from a call to get_bits
  231.     CLOSE_READER(re, s);
  232.     return tmp;
  233. }
       ^
  234. 
  235. /**

libavcodec/truemotion2.c:123:5: 
121. 
122.     huff.val_bits = get_bits(&ctx->gb, 5);
123.     huff.max_bits = get_bits(&ctx->gb, 5);
         ^
124.     huff.min_bits = get_bits(&ctx->gb, 5);
125.     huff.nodes = get_bits_long(&ctx->gb, 17);

libavcodec/get_bits.h:224:1: start of procedure get_bits()
  222.  * Read 1-25 bits.
  223.  */
  224. static inline unsigned int get_bits(GetBitContext *s, int n)
       ^
  225. {
  226.     register int tmp;

libavcodec/get_bits.h:227:5: 
  225. {
  226.     register int tmp;
  227.     OPEN_READER(re, s);
           ^
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:228:5: 
  226.     register int tmp;
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
           ^
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
    64. 
    65. #ifndef av_bswap32
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        ^
    67. {
    68.     return AV_BSWAP32C(x);

libavutil/bswap.h:68:5: 
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
    67. {
    68.     return AV_BSWAP32C(x);
            ^
    69. }
    70. #endif

libavutil/bswap.h:69:1: return from a call to av_bswap32
    67. {
    68.     return AV_BSWAP32C(x);
    69. }
        ^
    70. #endif
    71. 

libavcodec/get_bits.h:229:5: 
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
           ^
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);

libavcodec/get_bits.h:230:5: Condition is true
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
           ^
  231.     CLOSE_READER(re, s);
  232.     return tmp;

libavcodec/get_bits.h:231:5: 
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
           ^
  232.     return tmp;
  233. }

libavcodec/get_bits.h:232:5: 
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
  232.     return tmp;
           ^
  233. }
  234. 

libavcodec/get_bits.h:233:1: return from a call to get_bits
  231.     CLOSE_READER(re, s);
  232.     return tmp;
  233. }
       ^
  234. 
  235. /**

libavcodec/truemotion2.c:124:5: 
122.     huff.val_bits = get_bits(&ctx->gb, 5);
123.     huff.max_bits = get_bits(&ctx->gb, 5);
124.     huff.min_bits = get_bits(&ctx->gb, 5);
         ^
125.     huff.nodes = get_bits_long(&ctx->gb, 17);
126.     huff.num = 0;

libavcodec/get_bits.h:224:1: start of procedure get_bits()
  222.  * Read 1-25 bits.
  223.  */
  224. static inline unsigned int get_bits(GetBitContext *s, int n)
       ^
  225. {
  226.     register int tmp;

libavcodec/get_bits.h:227:5: 
  225. {
  226.     register int tmp;
  227.     OPEN_READER(re, s);
           ^
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:228:5: 
  226.     register int tmp;
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
           ^
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
    64. 
    65. #ifndef av_bswap32
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        ^
    67. {
    68.     return AV_BSWAP32C(x);

libavutil/bswap.h:68:5: 
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
    67. {
    68.     return AV_BSWAP32C(x);
            ^
    69. }
    70. #endif

libavutil/bswap.h:69:1: return from a call to av_bswap32
    67. {
    68.     return AV_BSWAP32C(x);
    69. }
        ^
    70. #endif
    71. 

libavcodec/get_bits.h:229:5: 
  227.     OPEN_READER(re, s);
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
           ^
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);

libavcodec/get_bits.h:230:5: Condition is true
  228.     UPDATE_CACHE(re, s);
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
           ^
  231.     CLOSE_READER(re, s);
  232.     return tmp;

libavcodec/get_bits.h:231:5: 
  229.     tmp = SHOW_UBITS(re, s, n);
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
           ^
  232.     return tmp;
  233. }

libavcodec/get_bits.h:232:5: 
  230.     LAST_SKIP_BITS(re, s, n);
  231.     CLOSE_READER(re, s);
  232.     return tmp;
           ^
  233. }
  234. 

libavcodec/get_bits.h:233:1: return from a call to get_bits
  231.     CLOSE_READER(re, s);
  232.     return tmp;
  233. }
       ^
  234. 
  235. /**

libavcodec/truemotion2.c:125:5: 
123.     huff.max_bits = get_bits(&ctx->gb, 5);
124.     huff.min_bits = get_bits(&ctx->gb, 5);
125.     huff.nodes = get_bits_long(&ctx->gb, 17);
         ^
126.     huff.num = 0;
127. 

libavcodec/get_bits.h:288:1: start of procedure get_bits_long()
  286.  * Read 0-32 bits.
  287.  */
  288. static inline unsigned int get_bits_long(GetBitContext *s, int n)
       ^
  289. {
  290.     if (n <= MIN_CACHE_BITS)

libavcodec/get_bits.h:290:9: Taking true branch
  288. static inline unsigned int get_bits_long(GetBitContext *s, int n)
  289. {
  290.     if (n <= MIN_CACHE_BITS)
               ^
  291.         return get_bits(s, n);
  292.     else {

libavcodec/get_bits.h:291:9: 
  289. {
  290.     if (n <= MIN_CACHE_BITS)
  291.         return get_bits(s, n);
               ^
  292.     else {
  293. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:224:1: start of procedure get_bits()
    222.  * Read 1-25 bits.
    223.  */
    224. static inline unsigned int get_bits(GetBitContext *s, int n)
         ^
    225. {
    226.     register int tmp;

libavcodec/get_bits.h:227:5: 
    225. {
    226.     register int tmp;
    227.     OPEN_READER(re, s);
             ^
    228.     UPDATE_CACHE(re, s);
    229.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:228:5: 
    226.     register int tmp;
    227.     OPEN_READER(re, s);
    228.     UPDATE_CACHE(re, s);
             ^
    229.     tmp = SHOW_UBITS(re, s, n);
    230.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
      64. 
      65. #ifndef av_bswap32
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
          ^
      67. {
      68.     return AV_BSWAP32C(x);

libavutil/bswap.h:68:5: 
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
      67. {
      68.     return AV_BSWAP32C(x);
              ^
      69. }
      70. #endif

libavutil/bswap.h:69:1: return from a call to av_bswap32
      67. {
      68.     return AV_BSWAP32C(x);
      69. }
          ^
      70. #endif
      71. 

libavcodec/get_bits.h:229:5: 
    227.     OPEN_READER(re, s);
    228.     UPDATE_CACHE(re, s);
    229.     tmp = SHOW_UBITS(re, s, n);
             ^
    230.     LAST_SKIP_BITS(re, s, n);
    231.     CLOSE_READER(re, s);

libavcodec/get_bits.h:230:5: Condition is false
    228.     UPDATE_CACHE(re, s);
    229.     tmp = SHOW_UBITS(re, s, n);
    230.     LAST_SKIP_BITS(re, s, n);
             ^
    231.     CLOSE_READER(re, s);
    232.     return tmp;

libavcodec/get_bits.h:231:5: 
    229.     tmp = SHOW_UBITS(re, s, n);
    230.     LAST_SKIP_BITS(re, s, n);
    231.     CLOSE_READER(re, s);
             ^
    232.     return tmp;
    233. }

libavcodec/get_bits.h:232:5: 
    230.     LAST_SKIP_BITS(re, s, n);
    231.     CLOSE_READER(re, s);
    232.     return tmp;
             ^
    233. }
    234. 

libavcodec/get_bits.h:233:1: return from a call to get_bits
    231.     CLOSE_READER(re, s);
    232.     return tmp;
    233. }
         ^
    234. 
    235. /**

libavcodec/get_bits.h:301:1: return from a call to get_bits_long
  299. #endif
  300.     }
  301. }
       ^
  302. 
  303. /**

libavcodec/truemotion2.c:126:5: 
124.     huff.min_bits = get_bits(&ctx->gb, 5);
125.     huff.nodes = get_bits_long(&ctx->gb, 17);
126.     huff.num = 0;
         ^
127. 
128.     /* check for correct codes parameters */

libavcodec/truemotion2.c:129:9: Taking false branch
127. 
128.     /* check for correct codes parameters */
129.     if((huff.val_bits < 1) || (huff.val_bits > 32) ||
             ^
130.        (huff.max_bits < 0) || (huff.max_bits > 32)) {
131.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal length: %i, max code length: %i\n",

libavcodec/truemotion2.c:129:32: Taking false branch
127. 
128.     /* check for correct codes parameters */
129.     if((huff.val_bits < 1) || (huff.val_bits > 32) ||
                                    ^
130.        (huff.max_bits < 0) || (huff.max_bits > 32)) {
131.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal length: %i, max code length: %i\n",

libavcodec/truemotion2.c:130:9: Taking false branch
128.     /* check for correct codes parameters */
129.     if((huff.val_bits < 1) || (huff.val_bits > 32) ||
130.        (huff.max_bits < 0) || (huff.max_bits > 32)) {
             ^
131.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal length: %i, max code length: %i\n",
132.                huff.val_bits, huff.max_bits);

libavcodec/truemotion2.c:130:32: Taking false branch
128.     /* check for correct codes parameters */
129.     if((huff.val_bits < 1) || (huff.val_bits > 32) ||
130.        (huff.max_bits < 0) || (huff.max_bits > 32)) {
                                    ^
131.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal length: %i, max code length: %i\n",
132.                huff.val_bits, huff.max_bits);

libavcodec/truemotion2.c:135:9: Taking false branch
133.         return -1;
134.     }
135.     if((huff.nodes < 0) || (huff.nodes > 0x10000)) {
             ^
136.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of Huffman tree nodes: %i\n", huff.nodes);
137.         return -1;

libavcodec/truemotion2.c:135:29: Taking false branch
133.         return -1;
134.     }
135.     if((huff.nodes < 0) || (huff.nodes > 0x10000)) {
                                 ^
136.         av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of Huffman tree nodes: %i\n", huff.nodes);
137.         return -1;

libavcodec/truemotion2.c:140:8: Taking false branch
138.     }
139.     /* one-node tree */
140.     if(huff.max_bits == 0)
            ^
141.         huff.max_bits = 1;
142. 

libavcodec/truemotion2.c:144:5: 
142. 
143.     /* allocate space for codes - it is exactly ceil(nodes / 2) entries */
144.     huff.max_num = (huff.nodes + 1) >> 1;
         ^
145.     huff.nums = av_mallocz(huff.max_num * sizeof(int));
146.     huff.bits = av_mallocz(huff.max_num * sizeof(uint32_t));

libavcodec/truemotion2.c:145:5: 
143.     /* allocate space for codes - it is exactly ceil(nodes / 2) entries */
144.     huff.max_num = (huff.nodes + 1) >> 1;
145.     huff.nums = av_mallocz(huff.max_num * sizeof(int));
         ^
146.     huff.bits = av_mallocz(huff.max_num * sizeof(uint32_t));
147.     huff.lens = av_mallocz(huff.max_num * sizeof(int));

libavutil/mem.c:154:1: start of procedure av_mallocz()
  152. }
  153. 
  154. void *av_mallocz(size_t size)
       ^
  155. {
  156.     void *ptr = av_malloc(size);

libavutil/mem.c:156:5: 
  154. void *av_mallocz(size_t size)
  155. {
  156.     void *ptr = av_malloc(size);
           ^
  157.     if (ptr)
  158.         memset(ptr, 0, size);

libavutil/mem.c:64:1: start of procedure av_malloc()
    62.    linker will do it automatically. */
    63. 
    64. void *av_malloc(size_t size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(size_t size)
    65. {
    66.     void *ptr = NULL;
            ^
    67. #if CONFIG_MEMALIGN_HACK
    68.     long diff;

libavutil/mem.c:72:8: Taking true branch
    70. 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
               ^
    73.         return NULL;
    74. 

libavutil/mem.c:73:9: 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
    73.         return NULL;
                ^
    74. 
    75. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:115:1: return from a call to av_malloc
    113. #endif
    114.     return ptr;
    115. }
         ^
    116. 
    117. void *av_realloc(void *ptr, size_t size)

libavutil/mem.c:157:9: Taking false branch
  155. {
  156.     void *ptr = av_malloc(size);
  157.     if (ptr)
               ^
  158.         memset(ptr, 0, size);
  159.     return ptr;

libavutil/mem.c:159:5: 
  157.     if (ptr)
  158.         memset(ptr, 0, size);
  159.     return ptr;
           ^
  160. }
  161. 

libavutil/mem.c:160:1: return from a call to av_mallocz
  158.         memset(ptr, 0, size);
  159.     return ptr;
  160. }
       ^
  161. 
  162. char *av_strdup(const char *s)

libavcodec/truemotion2.c:146:5: 
144.     huff.max_num = (huff.nodes + 1) >> 1;
145.     huff.nums = av_mallocz(huff.max_num * sizeof(int));
146.     huff.bits = av_mallocz(huff.max_num * sizeof(uint32_t));
         ^
147.     huff.lens = av_mallocz(huff.max_num * sizeof(int));
148. 

libavutil/mem.c:154:1: start of procedure av_mallocz()
  152. }
  153. 
  154. void *av_mallocz(size_t size)
       ^
  155. {
  156.     void *ptr = av_malloc(size);

libavutil/mem.c:156:5: 
  154. void *av_mallocz(size_t size)
  155. {
  156.     void *ptr = av_malloc(size);
           ^
  157.     if (ptr)
  158.         memset(ptr, 0, size);

libavutil/mem.c:64:1: start of procedure av_malloc()
    62.    linker will do it automatically. */
    63. 
    64. void *av_malloc(size_t size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(size_t size)
    65. {
    66.     void *ptr = NULL;
            ^
    67. #if CONFIG_MEMALIGN_HACK
    68.     long diff;

libavutil/mem.c:72:8: Taking true branch
    70. 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
               ^
    73.         return NULL;
    74. 

libavutil/mem.c:73:9: 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
    73.         return NULL;
                ^
    74. 
    75. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:115:1: return from a call to av_malloc
    113. #endif
    114.     return ptr;
    115. }
         ^
    116. 
    117. void *av_realloc(void *ptr, size_t size)

libavutil/mem.c:157:9: Taking false branch
  155. {
  156.     void *ptr = av_malloc(size);
  157.     if (ptr)
               ^
  158.         memset(ptr, 0, size);
  159.     return ptr;

libavutil/mem.c:159:5: 
  157.     if (ptr)
  158.         memset(ptr, 0, size);
  159.     return ptr;
           ^
  160. }
  161. 

libavutil/mem.c:160:1: return from a call to av_mallocz
  158.         memset(ptr, 0, size);
  159.     return ptr;
  160. }
       ^
  161. 
  162. char *av_strdup(const char *s)

libavcodec/truemotion2.c:147:5: 
145.     huff.nums = av_mallocz(huff.max_num * sizeof(int));
146.     huff.bits = av_mallocz(huff.max_num * sizeof(uint32_t));
147.     huff.lens = av_mallocz(huff.max_num * sizeof(int));
         ^
148. 
149.     if(tm2_read_tree(ctx, 0, 0, &huff) == -1)

libavutil/mem.c:154:1: start of procedure av_mallocz()
  152. }
  153. 
  154. void *av_mallocz(size_t size)
       ^
  155. {
  156.     void *ptr = av_malloc(size);

libavutil/mem.c:156:5: 
  154. void *av_mallocz(size_t size)
  155. {
  156.     void *ptr = av_malloc(size);
           ^
  157.     if (ptr)
  158.         memset(ptr, 0, size);

libavutil/mem.c:64:1: start of procedure av_malloc()
    62.    linker will do it automatically. */
    63. 
    64. void *av_malloc(size_t size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(size_t size)
    65. {
    66.     void *ptr = NULL;
            ^
    67. #if CONFIG_MEMALIGN_HACK
    68.     long diff;

libavutil/mem.c:72:8: Taking true branch
    70. 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
               ^
    73.         return NULL;
    74. 

libavutil/mem.c:73:9: 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
    73.         return NULL;
                ^
    74. 
    75. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:115:1: return from a call to av_malloc
    113. #endif
    114.     return ptr;
    115. }
         ^
    116. 
    117. void *av_realloc(void *ptr, size_t size)

libavutil/mem.c:157:9: Taking false branch
  155. {
  156.     void *ptr = av_malloc(size);
  157.     if (ptr)
               ^
  158.         memset(ptr, 0, size);
  159.     return ptr;

libavutil/mem.c:159:5: 
  157.     if (ptr)
  158.         memset(ptr, 0, size);
  159.     return ptr;
           ^
  160. }
  161. 

libavutil/mem.c:160:1: return from a call to av_mallocz
  158.         memset(ptr, 0, size);
  159.     return ptr;
  160. }
       ^
  161. 
  162. char *av_strdup(const char *s)

libavcodec/truemotion2.c:149:8: 
147.     huff.lens = av_mallocz(huff.max_num * sizeof(int));
148. 
149.     if(tm2_read_tree(ctx, 0, 0, &huff) == -1)
            ^
150.         res = -1;
151. 

libavcodec/truemotion2.c:88:1: start of procedure tm2_read_tree()
  86. } TM2Huff;
  87. 
  88. static int tm2_read_tree(TM2Context *ctx, uint32_t prefix, int length, TM2Huff *huff)
      ^
  89. {
  90.     if(length > huff->max_bits) {

libavcodec/truemotion2.c:90:8: Taking false branch
  88. static int tm2_read_tree(TM2Context *ctx, uint32_t prefix, int length, TM2Huff *huff)
  89. {
  90.     if(length > huff->max_bits) {
             ^
  91.         av_log(ctx->avctx, AV_LOG_ERROR, "Tree exceeded its given depth (%i)\n", huff->max_bits);
  92.         return -1;

libavcodec/truemotion2.c:95:9: 
  93.     }
  94. 
  95.     if(!get_bits1(&ctx->gb)) { /* literal */
              ^
  96.         if (length == 0) {
  97.             length = 1;

libavcodec/get_bits.h:255:1: start of procedure get_bits1()
    253. }
    254. 
    255. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    256. {
    257.     unsigned int index = s->index;

libavcodec/get_bits.h:257:5: 
    255. static inline unsigned int get_bits1(GetBitContext *s)
    256. {
    257.     unsigned int index = s->index;
             ^
    258.     uint8_t result = s->buffer[index>>3];
    259. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:258:5: 
    256. {
    257.     unsigned int index = s->index;
    258.     uint8_t result = s->buffer[index>>3];
             ^
    259. #ifdef BITSTREAM_READER_LE
    260.     result >>= index & 7;

libavcodec/get_bits.h:260:5: 
    258.     uint8_t result = s->buffer[index>>3];
    259. #ifdef BITSTREAM_READER_LE
    260.     result >>= index & 7;
             ^
    261.     result &= 1;
    262. #else

libavcodec/get_bits.h:261:5: 
    259. #ifdef BITSTREAM_READER_LE
    260.     result >>= index & 7;
    261.     result &= 1;
             ^
    262. #else
    263.     result <<= index & 7;

libavcodec/get_bits.h:267:9: Taking true branch
    265. #endif
    266. #if !UNCHECKED_BITSTREAM_READER
    267.     if (s->index < s->size_in_bits_plus8)
                 ^
    268. #endif
    269.         index++;

libavcodec/get_bits.h:269:9: 
    267.     if (s->index < s->size_in_bits_plus8)
    268. #endif
    269.         index++;
                 ^
    270.     s->index = index;
    271. 

libavcodec/get_bits.h:270:5: 
    268. #endif
    269.         index++;
    270.     s->index = index;
             ^
    271. 
    272.     return result;

libavcodec/get_bits.h:272:5: 
    270.     s->index = index;
    271. 
    272.     return result;
             ^
    273. }
    274. 

libavcodec/get_bits.h:273:1: return from a call to get_bits1
    271. 
    272.     return result;
    273. }
         ^
    274. 
    275. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/truemotion2.c:95:9: Taking true branch
  93.     }
  94. 
  95.     if(!get_bits1(&ctx->gb)) { /* literal */
              ^
  96.         if (length == 0) {
  97.             length = 1;

libavcodec/truemotion2.c:96:13: Taking true branch
  94. 
  95.     if(!get_bits1(&ctx->gb)) { /* literal */
  96.         if (length == 0) {
                  ^
  97.             length = 1;
  98.         }

libavcodec/truemotion2.c:97:13: 
  95.     if(!get_bits1(&ctx->gb)) { /* literal */
  96.         if (length == 0) {
  97.             length = 1;
                  ^
  98.         }
  99.         if(huff->num >= huff->max_num) {

libavcodec/truemotion2.c:99:12: Taking false branch
   97.             length = 1;
   98.         }
   99.         if(huff->num >= huff->max_num) {
                  ^
  100.             av_log(ctx->avctx, AV_LOG_DEBUG, "Too many literals\n");
  101.             return -1;

libavcodec/truemotion2.c:103:9: 
  101.             return -1;
  102.         }
  103.         huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits);
               ^
  104.         huff->bits[huff->num] = prefix;
  105.         huff->lens[huff->num] = length;

libavcodec/get_bits.h:288:1: start of procedure get_bits_long()
    286.  * Read 0-32 bits.
    287.  */
    288. static inline unsigned int get_bits_long(GetBitContext *s, int n)
         ^
    289. {
    290.     if (n <= MIN_CACHE_BITS)

libavcodec/get_bits.h:290:9: Taking true branch
    288. static inline unsigned int get_bits_long(GetBitContext *s, int n)
    289. {
    290.     if (n <= MIN_CACHE_BITS)
                 ^
    291.         return get_bits(s, n);
    292.     else {

libavcodec/get_bits.h:291:9: 
    289. {
    290.     if (n <= MIN_CACHE_BITS)
    291.         return get_bits(s, n);
                 ^
    292.     else {
    293. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:224:1: start of procedure get_bits()
      222.  * Read 1-25 bits.
      223.  */
      224. static inline unsigned int get_bits(GetBitContext *s, int n)
           ^
      225. {
      226.     register int tmp;

libavcodec/get_bits.h:227:5: 
      225. {
      226.     register int tmp;
      227.     OPEN_READER(re, s);
               ^
      228.     UPDATE_CACHE(re, s);
      229.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:228:5: 
      226.     register int tmp;
      227.     OPEN_READER(re, s);
      228.     UPDATE_CACHE(re, s);
               ^
      229.     tmp = SHOW_UBITS(re, s, n);
      230.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
        64. 
        65. #ifndef av_bswap32
        66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
            ^
        67. {
        68.     return AV_BSWAP32C(x);

libavutil/bswap.h:68:5: 
        66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        67. {
        68.     return AV_BSWAP32C(x);
                ^
        69. }
        70. #endif

libavutil/bswap.h:69:1: return from a call to av_bswap32
        67. {
        68.     return AV_BSWAP32C(x);
        69. }
            ^
        70. #endif
        71. 

libavcodec/get_bits.h:229:5: 
      227.     OPEN_READER(re, s);
      228.     UPDATE_CACHE(re, s);
      229.     tmp = SHOW_UBITS(re, s, n);
               ^
      230.     LAST_SKIP_BITS(re, s, n);
      231.     CLOSE_READER(re, s);

libavcodec/get_bits.h:230:5: Condition is true
      228.     UPDATE_CACHE(re, s);
      229.     tmp = SHOW_UBITS(re, s, n);
      230.     LAST_SKIP_BITS(re, s, n);
               ^
      231.     CLOSE_READER(re, s);
      232.     return tmp;

libavcodec/get_bits.h:231:5: 
      229.     tmp = SHOW_UBITS(re, s, n);
      230.     LAST_SKIP_BITS(re, s, n);
      231.     CLOSE_READER(re, s);
               ^
      232.     return tmp;
      233. }

libavcodec/get_bits.h:232:5: 
      230.     LAST_SKIP_BITS(re, s, n);
      231.     CLOSE_READER(re, s);
      232.     return tmp;
               ^
      233. }
      234. 

libavcodec/get_bits.h:233:1: return from a call to get_bits
      231.     CLOSE_READER(re, s);
      232.     return tmp;
      233. }
           ^
      234. 
      235. /**

libavcodec/get_bits.h:301:1: return from a call to get_bits_long
    299. #endif
    300.     }
    301. }
         ^
    302. 
    303. /**

libavcodec/truemotion2.c:104:9: 
  102.         }
  103.         huff->nums[huff->num] = get_bits_long(&ctx->gb, huff->val_bits);
  104.         huff->bits[huff->num] = prefix;
               ^
  105.         huff->lens[huff->num] = length;
  106.         huff->num++;
