aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_cue.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-10-07 21:48:45 +0200
committerMarton Balint <cus@passwd.hu>2018-10-09 21:46:28 +0200
commit4db291d7642255a6e7dc2dbb471c2466ca8d4a47 (patch)
tree5167442b722428a7aac18bfe1ac366a80fd8facc /libavfilter/f_cue.c
parentb1504e7796a420c8748a2dcb12a2b780ecf42c04 (diff)
downloadffmpeg-4db291d7642255a6e7dc2dbb471c2466ca8d4a47.tar.gz
avfilter/f_cue: always check the return value of ff_inlink_consume_frame
Fixes Coverity CID 1439936. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/f_cue.c')
-rw-r--r--libavfilter/f_cue.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/f_cue.c b/libavfilter/f_cue.c
index 9cf710c6d2..b48dfc9d49 100644
--- a/libavfilter/f_cue.c
+++ b/libavfilter/f_cue.c
@@ -51,7 +51,9 @@ static int activate(AVFilterContext *ctx)
}
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;
@@ -70,7 +72,9 @@ static int activate(AVFilterContext *ctx)
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);
}
}