mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-08 22:39:44 +02:00
avfilter/palettegen: make sure at least one frame was sent to the filter
Fix FPE. (cherry picked from commit 84da9339c21f679836a024ce86a69c6ea4a6fd11)
This commit is contained in:
parent
37469af294
commit
b80c486fb3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user