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