libavcodec/utvideoenc.c:411: error: Buffer Overrun L3
  Offset: [-2, +oo] Size: 512.

libavcodec/utvideoenc.c:407:10: <Offset trace>
405. 
406.     /* Generate lengths */
407.     for (i = 1; i <= 256; i++) {
              ^
408.         j = 0;
409.         k = i;

libavcodec/utvideoenc.c:407:10: Assignment
405. 
406.     /* Generate lengths */
407.     for (i = 1; i <= 256; i++) {
              ^
408.         j = 0;
409.         k = i;

libavcodec/utvideoenc.c:409:9: Assignment
407.     for (i = 1; i <= 256; i++) {
408.         j = 0;
409.         k = i;
             ^
410. 
411.         while (parents[k] >= 0) {

libavcodec/utvideoenc.c:353:1: <Length trace>
351. 
352. /* Calculate the huffman code lengths from value counts */
353. static void calculate_code_lengths(uint8_t *lengths, uint32_t *counts)
     ^
354. {
355.     uint32_t nr_nodes, nr_heap, node1, node2;

libavcodec/utvideoenc.c:353:1: Array declaration
351. 
352. /* Calculate the huffman code lengths from value counts */
353. static void calculate_code_lengths(uint8_t *lengths, uint32_t *counts)
     ^
354. {
355.     uint32_t nr_nodes, nr_heap, node1, node2;

libavcodec/utvideoenc.c:411:16: Array access: Offset: [-2, +oo] Size: 512
409.         k = i;
410. 
411.         while (parents[k] >= 0) {
                    ^
412.             k = parents[k];
413.             j++;
