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

libavfilter/vf_fieldorder.c:59:24: Call
57.                   desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
58.                 desc->nb_components && !desc->log2_chroma_h &&
59.                 (ret = ff_add_format(&formats, pix_fmt)) < 0) {
                           ^
60.                 ff_formats_unref(&formats);
61.                 return ret;

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_fieldorder.c:59:24: Call
57.                   desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
58.                 desc->nb_components && !desc->log2_chroma_h &&
59.                 (ret = ff_add_format(&formats, pix_fmt)) < 0) {
                           ^
60.                 ff_formats_unref(&formats);
61.                 return ret;

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_fieldorder.c:60:17: Call
58.                 desc->nb_components && !desc->log2_chroma_h &&
59.                 (ret = ff_add_format(&formats, pix_fmt)) < 0) {
60.                 ff_formats_unref(&formats);
                    ^
61.                 return ret;
62.             }

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. 
