Commit 84da9339 authored by Clément Bœsch's avatar Clément Bœsch

avfilter/palettegen: make sure at least one frame was sent to the filter

Fix FPE.
parent 0a480874
...@@ -504,7 +504,7 @@ static int request_frame(AVFilterLink *outlink) ...@@ -504,7 +504,7 @@ static int request_frame(AVFilterLink *outlink)
int r; int r;
r = ff_request_frame(inlink); 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)); r = ff_filter_frame(outlink, get_palette_frame(ctx));
s->palette_pushed = 1; s->palette_pushed = 1;
return r; return r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment