libavfilter/vf_format.c:93: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `ff_formats_unref`.

libavfilter/vf_format.c:91:23: Call
89.     for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
90.         if (s->listed_pix_fmt_flags[pix_fmt] == flag) {
91.             int ret = ff_add_format(&formats, pix_fmt);
                          ^
92.             if (ret < 0) {
93.                 ff_formats_unref(&formats);

libavfilter/formats.c:199:1: Parameter `(*avff)->nb_formats`
  197. } while (0)
  198. 
  199. int ff_add_format(AVFilterFormats **avff, int fmt)
       ^
  200. {
  201.     ADD_FORMAT(avff, fmt, int, formats, nb_formats);

libavfilter/vf_format.c:91:23: Call
89.     for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
90.         if (s->listed_pix_fmt_flags[pix_fmt] == flag) {
91.             int ret = ff_add_format(&formats, pix_fmt);
                          ^
92.             if (ret < 0) {
93.                 ff_formats_unref(&formats);

libavfilter/formats.c:199:1: Parameter `(*avff)->nb_formats`
  197. } while (0)
  198. 
  199. int ff_add_format(AVFilterFormats **avff, int fmt)
       ^
  200. {
  201.     ADD_FORMAT(avff, fmt, int, formats, nb_formats);

libavfilter/vf_format.c:93:17: Call
91.             int ret = ff_add_format(&formats, pix_fmt);
92.             if (ret < 0) {
93.                 ff_formats_unref(&formats);
                    ^
94.                 return NULL;
95.             }

libavfilter/formats.c:298:1: <LHS trace>
296. } while (0)
297. 
298. void ff_formats_unref(AVFilterFormats **ref)
     ^
299. {
300.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:298:1: Parameter `(*ref)->refcount`
  296. } while (0)
  297. 
  298. void ff_formats_unref(AVFilterFormats **ref)
       ^
  299. {
  300.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:300:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `ff_formats_unref` 
  298. void ff_formats_unref(AVFilterFormats **ref)
  299. {
  300.     FORMATS_UNREF(ref, formats);
           ^
  301. }
  302. 
