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

libavfilter/af_asyncts.c:143:9: Assignment
141.         }
142. 
143.         buf->pts = s->pts;
             ^
144.         return ff_filter_frame(link, buf);
145.     }

libavfilter/af_asyncts.c:144:16: Call
142. 
143.         buf->pts = s->pts;
144.         return ff_filter_frame(link, buf);
                    ^
145.     }
146. 

libavfilter/avfilter.c:459:1: Parameter `frame->buf->refcount`
  457. }
  458. 
  459. int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
       ^
  460. {
  461.     int (*filter_frame)(AVFilterLink *, AVFilterBufferRef *);

libavfilter/avfilter.c:493:13: Call
  491.         }
  492.         if (!out) {
  493.             avfilter_unref_buffer(frame);
                   ^
  494.             return AVERROR(ENOMEM);
  495.         }

libavfilter/buffer.c:75:1: <LHS trace>
73. }
74. 
75. void avfilter_unref_buffer(AVFilterBufferRef *ref)
    ^
76. {
77.     if (!ref)

libavfilter/buffer.c:75:1: Parameter `ref->buf->refcount`
    73. }
    74. 
    75. void avfilter_unref_buffer(AVFilterBufferRef *ref)
        ^
    76. {
    77.     if (!ref)

libavfilter/buffer.c:79:11: Binary operation: ([0, +oo] - 1):unsigned32 by call to `ff_filter_frame` 
    77.     if (!ref)
    78.         return;
    79.     if (!(--ref->buf->refcount))
                  ^
    80.         ref->buf->free(ref->buf);
    81.     if (ref->extended_data != ref->data)

void avfilter_unref_buffer(AVFilterBufferRef *ref)
{
    if (!ref)
        return;
    if (!(--ref->buf->refcount))
        ref->buf->free(ref->buf);
    if (ref->extended_data != ref->data)
        av_freep(&ref->extended_data);
    av_free(ref->video);
    av_free(ref->audio);
    av_free(ref);
}
['static int request_frame(AVFilterLink *link)\n{\n    AVFilterContext *ctx = link->src;\n    ASyncContext      *s = ctx->priv;\n    int ret = 0;\n    int nb_samples;\n    s->got_output = 0;\n    while (ret >= 0 && !s->got_output)\n        ret = ff_request_frame(ctx->inputs[0]);\n    if (ret == AVERROR_EOF && (nb_samples = avresample_get_delay(s->avr))) {\n        AVFilterBufferRef *buf = ff_get_audio_buffer(link, AV_PERM_WRITE,\n                                                     nb_samples);\n        if (!buf)\n            return AVERROR(ENOMEM);\n        ret = avresample_convert(s->avr, buf->extended_data,\n                                 buf->linesize[0], nb_samples, NULL, 0, 0);\n        if (ret <= 0) {\n            avfilter_unref_bufferp(&buf);\n            return (ret < 0) ? ret : AVERROR_EOF;\n        }\n        buf->pts = s->pts;\n        return ff_filter_frame(link, buf);\n    }\n    return ret;\n}', 'int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)\n{\n    int (*filter_frame)(AVFilterLink *, AVFilterBufferRef *);\n    AVFilterPad *dst = link->dstpad;\n    AVFilterBufferRef *out;\n    int perms = frame->perms;\n    FF_DPRINTF_START(NULL, filter_frame);\n    ff_dlog_link(NULL, link, 1);\n    if (!(filter_frame = dst->filter_frame))\n        filter_frame = default_filter_frame;\n    if (frame->linesize[0] < 0)\n        perms |= AV_PERM_NEG_LINESIZES;\n    if ((dst->min_perms & perms) != dst->min_perms ||\n        dst->rej_perms & perms) {\n        av_log(link->dst, AV_LOG_DEBUG,\n               "Copying data in avfilter (have perms %x, need %x, reject %x)\\n",\n               perms, link->dstpad->min_perms, link->dstpad->rej_perms);\n        switch (link->type) {\n        case AVMEDIA_TYPE_VIDEO:\n            out = ff_get_video_buffer(link, dst->min_perms,\n                                      link->w, link->h);\n            break;\n        case AVMEDIA_TYPE_AUDIO:\n            out = ff_get_audio_buffer(link, dst->min_perms,\n                                      frame->audio->nb_samples);\n            break;\n        default: return AVERROR(EINVAL);\n        }\n        if (!out) {\n            avfilter_unref_buffer(frame);\n            return AVERROR(ENOMEM);\n        }\n        avfilter_copy_buffer_ref_props(out, frame);\n        switch (link->type) {\n        case AVMEDIA_TYPE_VIDEO:\n            av_image_copy(out->data, out->linesize, frame->data, frame->linesize,\n                          frame->format, frame->video->w, frame->video->h);\n            break;\n        case AVMEDIA_TYPE_AUDIO:\n            av_samples_copy(out->extended_data, frame->extended_data,\n                            0, 0, frame->audio->nb_samples,\n                            av_get_channel_layout_nb_channels(frame->audio->channel_layout),\n                            frame->format);\n            break;\n        default: return AVERROR(EINVAL);\n        }\n        avfilter_unref_buffer(frame);\n    } else\n        out = frame;\n    return filter_frame(link, out);\n}', 'void avfilter_unref_buffer(AVFilterBufferRef *ref)\n{\n    if (!ref)\n        return;\n    if (!(--ref->buf->refcount))\n        ref->buf->free(ref->buf);\n    if (ref->extended_data != ref->data)\n        av_freep(&ref->extended_data);\n    av_free(ref->video);\n    av_free(ref->audio);\n    av_free(ref);\n}']