libavcodec/extract_extradata_bsf.c:85: error: Buffer Overrun L3
  Offset: [0, 2] Size: [2, 3] by call to `val_in_array`.

libavcodec/extract_extradata_bsf.c:72:9: Assignment
70.     if (ctx->par_in->codec_id == AV_CODEC_ID_HEVC) {
71.         extradata_nal_types    = extradata_nal_types_hevc;
72.         nb_extradata_nal_types = FF_ARRAY_ELEMS(extradata_nal_types_hevc);
            ^
73.     } else {
74.         extradata_nal_types    = extradata_nal_types_h264;

libavcodec/extract_extradata_bsf.c:85:13: Call
83.     for (i = 0; i < h2645_pkt.nb_nals; i++) {
84.         H2645NAL *nal = &h2645_pkt.nals[i];
85.         if (val_in_array(extradata_nal_types, nb_extradata_nal_types, nal->type))
                ^
86.             extradata_size += nal->raw_size + 3;
87.     }

libavcodec/extract_extradata_bsf.c:43:1: <Offset trace>
41. } ExtractExtradataContext;
42. 
43. static int val_in_array(const int *arr, int len, int val)
    ^
44. {
45.     int i;

libavcodec/extract_extradata_bsf.c:43:1: Parameter `len`
  41. } ExtractExtradataContext;
  42. 
  43. static int val_in_array(const int *arr, int len, int val)
      ^
  44. {
  45.     int i;

libavcodec/extract_extradata_bsf.c:43:1: <Length trace>
41. } ExtractExtradataContext;
42. 
43. static int val_in_array(const int *arr, int len, int val)
    ^
44. {
45.     int i;

libavcodec/extract_extradata_bsf.c:43:1: Parameter `*arr`
  41. } ExtractExtradataContext;
  42. 
  43. static int val_in_array(const int *arr, int len, int val)
      ^
  44. {
  45.     int i;

libavcodec/extract_extradata_bsf.c:47:13: Array access: Offset: [0, 2] Size: [2, 3] by call to `val_in_array` 
  45.     int i;
  46.     for (i = 0; i < len; i++)
  47.         if (arr[i] == val)
                  ^
  48.             return 1;
  49.     return 0;
