aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-15 19:09:16 +0100
committerClément Bœsch <u@pkh.me>2015-03-15 19:10:20 +0100
commitb80c486fb3b5d324a03a2e9fb532d639b2258e1f (patch)
tree1de947731bad1c016544605528457e8d21118d9d
parent37469af29454a78227326bf64608b86cb6cd678b (diff)
downloadffmpeg-b80c486fb3b5d324a03a2e9fb532d639b2258e1f.tar.gz
avfilter/palettegen: make sure at least one frame was sent to the filter
Fix FPE. (cherry picked from commit 84da9339c21f679836a024ce86a69c6ea4a6fd11)
-rw-r--r--libavfilter/vf_palettegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index 8b08140283..4b49058b35 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -504,7 +504,7 @@ static int request_frame(AVFilterLink *outlink)
int r;
r = ff_request_frame(inlink);
- if (r == AVERROR_EOF && !s->palette_pushed) {
+ if (r == AVERROR_EOF && !s->palette_pushed && s->nb_refs) {
r = ff_filter_frame(outlink, get_palette_frame(ctx));
s->palette_pushed = 1;
return r;