}
if (s->status == 1) {
if (pts - s->first_pts < s->preroll) {
- ff_inlink_consume_frame(inlink, &frame);
+ int ret = ff_inlink_consume_frame(inlink, &frame);
+ if (ret < 0)
+ return ret;
return ff_filter_frame(outlink, frame);
}
s->first_pts = pts;
s->status++;
}
if (s->status == 4) {
- ff_inlink_consume_frame(inlink, &frame);
+ int ret = ff_inlink_consume_frame(inlink, &frame);
+ if (ret < 0)
+ return ret;
return ff_filter_frame(outlink, frame);
}
}
{ NULL }
};
-AVFilter ff_vf_cue = {
+const AVFilter ff_vf_cue = {
.name = "cue",
.description = NULL_IF_CONFIG_SMALL("Delay filtering to match a cue."),
.priv_size = sizeof(CueContext),
{ NULL }
};
-AVFilter ff_af_acue = {
+const AVFilter ff_af_acue = {
.name = "acue",
.description = NULL_IF_CONFIG_SMALL("Delay filtering to match a cue."),
.priv_size = sizeof(CueContext),