libavcodec/dvenc.c:58: error: Buffer Overrun L3
  Offset: [-54, +oo] Size: 64 by call to `ff_dv_init_dynamic_tables`.

libavcodec/dvenc.c:58:11: Call
56.         return AVERROR(EINVAL);
57.     }
58.     ret = ff_dv_init_dynamic_tables(s, s->sys);
              ^
59.     if (ret < 0) {
60.         av_log(avctx, AV_LOG_ERROR, "Error initializing work tables.\n");

libavcodec/dv.c:185:1: Parameter `d->n_difchan`
  183. static const uint8_t dv_quant_areas[4] = { 6, 21, 43, 64 };
  184. 
  185. int ff_dv_init_dynamic_tables(DVVideoContext *ctx, const AVDVProfile *d)
       ^
  186. {
  187.     int j, i, c, s, p;

libavcodec/dv.c:199:21: Call
  197.                 if (!(DV_PROFILE_IS_1080i50(d) && c != 0 && s == 11) &&
  198.                     !(DV_PROFILE_IS_720p50(d) && s > 9)) {
  199.                     dv_calc_mb_coordinates(d, c, s, j, &ctx->work_chunks[i].mb_coordinates[0]);
                           ^
  200.                     ctx->work_chunks[i++].buf_offset = p;
  201.                 }

libavcodec/dv.c:55:1: <Offset trace>
53. RL_VLC_ELEM ff_dv_rl_vlc[1184];
54. 
55. static inline void dv_calc_mb_coordinates(const AVDVProfile *d, int chan,
    ^
56.                                           int seq, int slot, uint16_t *tbl)
57. {

libavcodec/dv.c:55:1: Parameter `chan`
    53. RL_VLC_ELEM ff_dv_rl_vlc[1184];
    54. 
    55. static inline void dv_calc_mb_coordinates(const AVDVProfile *d, int chan,
        ^
    56.                                           int seq, int slot, uint16_t *tbl)
    57. {

libavcodec/dv.c:127:13: Assignment
    125. 
    126.             x = shuf1[m] + (chan & 1) * 9 + k % 9;
    127.             y = (i * 3 + k / 9) * 2 + (chan >> 1) + 4;
                     ^
    128. 
    129.             if (x >= 80) {

libavcodec/dv.c:79:5: <Length trace>
77.     };
78. 
79.     static const uint8_t remap[][2] = {
        ^
80.         {  0,  0 }, {  0,  0 }, {  0,  0 }, {  0,  0 }, /* dummy */
81.         {  0,  0 }, {  0,  1 }, {  0,  2 }, {  0,  3 }, { 10,  0 },

libavcodec/dv.c:79:5: Array declaration
    77.     };
    78. 
    79.     static const uint8_t remap[][2] = {
            ^
    80.         {  0,  0 }, {  0,  0 }, {  0,  0 }, {  0,  0 }, /* dummy */
    81.         {  0,  0 }, {  0,  1 }, {  0,  2 }, {  0,  3 }, { 10,  0 },

libavcodec/dv.c:130:21: Array access: Offset: [-54, +oo] Size: 64 by call to `ff_dv_init_dynamic_tables` 
    128. 
    129.             if (x >= 80) {
    130.                 x = remap[y][0] + ((x - 80) << (y > 59));
                             ^
    131.                 y = remap[y][1];
    132.             }
